Skip to content

Commit c0958f7

Browse files
committed
conf: Maven publishing fixed
1 parent 4a013c0 commit c0958f7

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

build.gradle

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,30 @@ java {
3939
withSourcesJar()
4040
}
4141

42-
publishing {
43-
publications {
44-
mavenJava(MavenPublication) {
45-
from(components.java)
46-
artifactId = archivesBaseName
47-
pom {
48-
name = 'Gradle Docker Compose plugin'
49-
description = 'Simplifies usage of Docker Compose for integration testing in Gradle environment.'
50-
url = 'https://github.com/avast/gradle-docker-compose-plugin'
51-
licenses {
52-
license {
53-
name = 'The MIT License'
54-
url = 'http://www.opensource.org/licenses/mit-license.php'
55-
}
56-
}
57-
developers {
58-
developer {
59-
id = 'augi'
60-
name = 'Michal Augustýn'
61-
62-
}
42+
afterEvaluate {
43+
publishing.publications.forEach {
44+
it.pom {
45+
name = 'Gradle Docker Compose plugin'
46+
description = 'Simplifies usage of Docker Compose for integration testing in Gradle environment.'
47+
url = 'https://github.com/avast/gradle-docker-compose-plugin'
48+
licenses {
49+
license {
50+
name = 'The MIT License'
51+
url = 'http://www.opensource.org/licenses/mit-license.php'
6352
}
64-
scm {
65-
connection = 'scm:git:git://github.com/avast/gradle-docker-compose-plugin.git'
66-
developerConnection = 'scm:git:ssh://github.com/avast/gradle-docker-compose-plugin.git'
67-
url = 'https://github.com/avast/gradle-docker-compose-plugin'
53+
}
54+
developers {
55+
developer {
56+
id = 'augi'
57+
name = 'Michal Augustýn'
58+
6859
}
6960
}
61+
scm {
62+
connection = 'scm:git:git://github.com/avast/gradle-docker-compose-plugin.git'
63+
developerConnection = 'scm:git:ssh://github.com/avast/gradle-docker-compose-plugin.git'
64+
url = 'https://github.com/avast/gradle-docker-compose-plugin'
65+
}
7066
}
7167
}
7268
}

0 commit comments

Comments
 (0)