File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
apprunner/apprunner-build-logic/src/main/kotlin/publishing Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments