Skip to content

Commit 7f045c8

Browse files
committed
Apprunner: always add pom-files to all jars
1 parent 91c91d5 commit 7f045c8

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

apprunner/apprunner-build-logic/src/main/kotlin/publishing/PublishingHelperPlugin.kt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,8 @@ constructor(private val softwareComponentFactory: SoftwareComponentFactory) : Pl
8282
project.run {
8383
extensions.create("publishingHelper", PublishingHelperExtension::class.java)
8484

85-
val isRelease = project.hasProperty("release")
86-
87-
// Adds Git/Build/System related information to the generated jars, if the `release` project
88-
// property is present. Do not add that information in development builds, so that the
89-
// generated jars are still cacheable for Gradle.
90-
if (isRelease || project.hasProperty("jarWithGitInfo")) {
91-
// Runs `git`, considered expensive, so guarded behind project properties.
92-
tasks.withType<Jar>().configureEach {
93-
manifest { MemoizedJarInfo.applyJarManifestAttributes(rootProject, attributes) }
94-
}
95-
96-
addAdditionalJarContent(this)
85+
tasks.withType<Jar>().configureEach {
86+
manifest { MemoizedJarInfo.applyJarManifestAttributes(rootProject, attributes) }
9787
}
9888

9989
apply(plugin = "maven-publish")
@@ -184,5 +174,7 @@ constructor(private val softwareComponentFactory: SoftwareComponentFactory) : Pl
184174
}
185175
}
186176
}
177+
178+
addAdditionalJarContent(this)
187179
}
188180
}

0 commit comments

Comments
 (0)