mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-27 13:02:09 +08:00
build: ADD PROJECT INFORMATION TO THE MANIFEST FOR THE JAR PACKAGE. MF- Add task configuration in build.gradle.kts, MANIFEST generated for jar package. Add the project name and version information to the MF file
- New attributes: - Implementation-Title: The name of the project - Implementation-Version: The version of the project
This commit is contained in:
parent
2753c27dca
commit
446b859a8a
@ -41,7 +41,6 @@ version = scmVersion.version
|
||||
|
||||
// 配置目录路径
|
||||
val configDir = "$rootDir/config/"
|
||||
val tasksDir = "$configDir/tasks/"
|
||||
|
||||
// 全局项目配置
|
||||
allprojects {
|
||||
@ -189,7 +188,14 @@ subprojects {
|
||||
languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<Jar>("jar") {
|
||||
manifest {
|
||||
attributes(
|
||||
"Implementation-Title" to project.name,
|
||||
"Implementation-Version" to project.version
|
||||
)
|
||||
}
|
||||
}
|
||||
// 任务配置
|
||||
tasks.withType<Jar> {
|
||||
isEnabled = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user