Skip to content

Commit 587c637

Browse files
authored
Merge pull request #327 from maths22/gradle-8-fix
Include necessary metadata in gradle plugin POM
2 parents 121b332 + 679fb64 commit 587c637

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

build.gradle

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,27 +114,37 @@ publishing {
114114
name = project.name
115115
groupId = project.group
116116
artifactId = project.name
117-
version = project.version
118-
description = project.description
119117
packaging = 'maven-plugin'
120-
url = 'https://github.com/fvarrui/JavaPackager'
121-
scm {
122-
connection = 'scm:git:git://github.com/fvarrui/JavaPackager.git'
123-
developerConnection = 'scm:git:git@github.com:fvarrui/fvarrui.git'
118+
}
119+
}
120+
}
121+
122+
afterEvaluate {
123+
publications {
124+
withType(MavenPublication) {
125+
// customize all publications here
126+
pom {
127+
version = project.version
128+
description = project.description
124129
url = 'https://github.com/fvarrui/JavaPackager'
125-
}
126-
licenses {
127-
license {
128-
name = 'GPL-v3.0'
129-
url = 'http://www.gnu.org/licenses/gpl-3.0.txt'
130-
distribution = 'repo'
130+
scm {
131+
connection = 'scm:git:git://github.com/fvarrui/JavaPackager.git'
132+
developerConnection = 'scm:git:git@github.com:fvarrui/fvarrui.git'
133+
url = 'https://github.com/fvarrui/JavaPackager'
131134
}
132-
}
133-
developers {
134-
developer {
135-
id = 'fvarrui'
136-
name = 'Francisco Vargas Ruiz'
137-
url = 'https://github.com/fvarrui'
135+
licenses {
136+
license {
137+
name = 'GPL-v3.0'
138+
url = 'http://www.gnu.org/licenses/gpl-3.0.txt'
139+
distribution = 'repo'
140+
}
141+
}
142+
developers {
143+
developer {
144+
id = 'fvarrui'
145+
name = 'Francisco Vargas Ruiz'
146+
url = 'https://github.com/fvarrui'
147+
}
138148
}
139149
}
140150
}

0 commit comments

Comments
 (0)