Skip to content

Commit

Permalink
Add missing POM information back to instrumentation artifacts, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mannodermaus committed Sep 17, 2021
1 parent 4d9f68a commit ddf34d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-logic/src/main/kotlin/Deployment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ fun Project.configureDeployment(deployConfig: Deployed) {
androidSourcesJar = androidSourcesJar,
javadocJar = javadocJar
)
.configurePom(deployConfig)
}
}
}
Expand Down Expand Up @@ -149,7 +150,7 @@ private fun MavenPublication.applyPublicationDetails(
isAndroid: Boolean,
androidSourcesJar: Jar,
javadocJar: Jar
) {
) = also {
groupId = deployConfig.groupId
artifactId = deployConfig.artifactId
version = deployConfig.currentVersion
Expand Down Expand Up @@ -192,7 +193,7 @@ private fun MavenPublication.applyPublicationDetails(
}
}

private fun MavenPublication.configurePom(deployConfig: Deployed) {
private fun MavenPublication.configurePom(deployConfig: Deployed) = also {
pom {
// Name and description cannot be set directly through the property, since they somehow aren't applied
// to Gradle Plugin Marker's POM file (maybe that plugin removes them somehow). Therefore,
Expand Down

0 comments on commit ddf34d2

Please sign in to comment.