Skip to content

Commit 6e3fe3d

Browse files
committed
Configure manifest file
1 parent 0fc7655 commit 6e3fe3d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,17 @@ tasks.withType<JavaCompile>().configureEach {
150150
options.compilerArgs.add("-parameters")
151151
}
152152

153+
tasks.withType<Jar>().configureEach {
154+
manifest {
155+
attributes(
156+
"Implementation-Title" to project.name,
157+
"Implementation-Version" to project.version,
158+
"Build-Jdk-Spec" to java.toolchain.languageVersion.get().toString(),
159+
"Created-By" to "Gradle ${gradle.gradleVersion}",
160+
)
161+
}
162+
}
163+
153164
/**
154165
* Disable doclint to avoid errors and warnings on missing JavaDoc comments.
155166
*/

0 commit comments

Comments
 (0)