This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris-tools.git
The following commit(s) were added to refs/heads/main by this push:
new de90c63 Apprunner: always add pom-files to all jars (#65)
de90c63 is described below
commit de90c632b44feced5c69ac1b26000b174636b308
Author: Robert Stupp <[email protected]>
AuthorDate: Sat Nov 22 11:14:03 2025 +0100
Apprunner: always add pom-files to all jars (#65)
---
.../src/main/kotlin/publishing/PublishingHelperPlugin.kt | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git
a/apprunner/apprunner-build-logic/src/main/kotlin/publishing/PublishingHelperPlugin.kt
b/apprunner/apprunner-build-logic/src/main/kotlin/publishing/PublishingHelperPlugin.kt
index 323a1d5..bc7ef4a 100644
---
a/apprunner/apprunner-build-logic/src/main/kotlin/publishing/PublishingHelperPlugin.kt
+++
b/apprunner/apprunner-build-logic/src/main/kotlin/publishing/PublishingHelperPlugin.kt
@@ -82,18 +82,8 @@ constructor(private val softwareComponentFactory:
SoftwareComponentFactory) : Pl
project.run {
extensions.create("publishingHelper",
PublishingHelperExtension::class.java)
- val isRelease = project.hasProperty("release")
-
- // Adds Git/Build/System related information to the generated jars, if
the `release` project
- // property is present. Do not add that information in development
builds, so that the
- // generated jars are still cacheable for Gradle.
- if (isRelease || project.hasProperty("jarWithGitInfo")) {
- // Runs `git`, considered expensive, so guarded behind project
properties.
- tasks.withType<Jar>().configureEach {
- manifest { MemoizedJarInfo.applyJarManifestAttributes(rootProject,
attributes) }
- }
-
- addAdditionalJarContent(this)
+ tasks.withType<Jar>().configureEach {
+ manifest { MemoizedJarInfo.applyJarManifestAttributes(rootProject,
attributes) }
}
apply(plugin = "maven-publish")
@@ -184,5 +174,7 @@ constructor(private val softwareComponentFactory:
SoftwareComponentFactory) : Pl
}
}
}
+
+ addAdditionalJarContent(this)
}
}