Skip to content

Commit ddf34d2

Browse files
committed
Add missing POM information back to instrumentation artifacts, too
1 parent 4d9f68a commit ddf34d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build-logic/src/main/kotlin/Deployment.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ fun Project.configureDeployment(deployConfig: Deployed) {
9797
androidSourcesJar = androidSourcesJar,
9898
javadocJar = javadocJar
9999
)
100+
.configurePom(deployConfig)
100101
}
101102
}
102103
}
@@ -149,7 +150,7 @@ private fun MavenPublication.applyPublicationDetails(
149150
isAndroid: Boolean,
150151
androidSourcesJar: Jar,
151152
javadocJar: Jar
152-
) {
153+
) = also {
153154
groupId = deployConfig.groupId
154155
artifactId = deployConfig.artifactId
155156
version = deployConfig.currentVersion
@@ -192,7 +193,7 @@ private fun MavenPublication.applyPublicationDetails(
192193
}
193194
}
194195

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

0 commit comments

Comments
 (0)