Skip to content

Commit

Permalink
fix: customize pom, not create another publication (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiget committed Jun 6, 2022
1 parent 25979db commit 98833d9
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,35 +129,36 @@ pluginBundle {
}

publishing {
publications {
sonatype(MavenPublication) {
from components.java
pom {
name = project.name
description = 'Gradle release and version management plugin'
url = 'https://github.com/allegro/axion-release-plugin'
inceptionYear = '2014'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
afterEvaluate {
publications {
withType(MavenPublication) {
pom {
name = project.name
description = 'Gradle release and version management plugin'
url = 'https://github.com/allegro/axion-release-plugin'
inceptionYear = '2014'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
developers {
developer {
id = 'adamdubiel'
name = 'Adam Dubiel'
developers {
developer {
id = 'adamdubiel'
name = 'Adam Dubiel'
}
developer {
id = 'bgalek'
name = 'Bartosz Gałek'
}
}
developer {
id = 'bgalek'
name = 'Bartosz Gałek'
scm {
url = 'https://github.com/allegro/axion-release-plugin'
connection = 'scm:git@github.com:allegro/axion-release-plugin.git'
developerConnection = 'scm:git@github.com:allegro/axion-release-plugin.git'
}
}
scm {
url = 'https://github.com/allegro/axion-release-plugin'
connection = 'scm:git@github.com:allegro/axion-release-plugin.git'
developerConnection = 'scm:git@github.com:allegro/axion-release-plugin.git'
}
}
}
}
Expand Down

0 comments on commit 98833d9

Please sign in to comment.