Skip to content

Commit

Permalink
conf: Maven publishing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Jun 29, 2022
1 parent 4a013c0 commit c0958f7
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,30 @@ java {
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
artifactId = archivesBaseName
pom {
name = 'Gradle Docker Compose plugin'
description = 'Simplifies usage of Docker Compose for integration testing in Gradle environment.'
url = 'https://github.com/avast/gradle-docker-compose-plugin'
licenses {
license {
name = 'The MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'augi'
name = 'Michal Augustýn'
email = '[email protected]'
}
afterEvaluate {
publishing.publications.forEach {
it.pom {
name = 'Gradle Docker Compose plugin'
description = 'Simplifies usage of Docker Compose for integration testing in Gradle environment.'
url = 'https://github.com/avast/gradle-docker-compose-plugin'
licenses {
license {
name = 'The MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
scm {
connection = 'scm:git:git://github.com/avast/gradle-docker-compose-plugin.git'
developerConnection = 'scm:git:ssh://github.com/avast/gradle-docker-compose-plugin.git'
url = 'https://github.com/avast/gradle-docker-compose-plugin'
}
developers {
developer {
id = 'augi'
name = 'Michal Augustýn'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/avast/gradle-docker-compose-plugin.git'
developerConnection = 'scm:git:ssh://github.com/avast/gradle-docker-compose-plugin.git'
url = 'https://github.com/avast/gradle-docker-compose-plugin'
}
}
}
}
Expand Down

0 comments on commit c0958f7

Please sign in to comment.