Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: customize pom, not create another publication #487

Merged
merged 1 commit into from
Jun 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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