This commit is contained in:
aanno 2021-02-09 12:15:16 +01:00
parent 40fc712581
commit 7a86423487
2 changed files with 18 additions and 1 deletions

View file

@ -6,6 +6,7 @@ plugins {
}
version = "0.7.4"
group = "org.asamk.signal"
java {
sourceCompatibility = JavaVersion.VERSION_11
@ -44,7 +45,10 @@ tasks.withType<Jar> {
attributes(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Main-Class" to application.mainClass.get()
"Main-Class" to application.mainClass.get(),
"Automatic-Module-Name" to project.name,
// Custom (non-standard) attribute
"Maven-Group" to project.group
)
}
}

View file

@ -26,6 +26,19 @@ configurations {
}
}
tasks.withType<Jar> {
manifest {
attributes(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
// use a more meaningful name than 'lib'
"Automatic-Module-Name" to "signal-lib",
// Custom (non-standard) attribute
"Maven-Group" to project.group
)
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}