Include LICENSE in the built artifacts

This commit is contained in:
Jared 2022-06-15 20:37:09 +02:00
parent 44c2968378
commit 3f825a4331
No known key found for this signature in database
GPG Key ID: DB3BA3B9088A1BDF

View File

@ -7,6 +7,9 @@ subprojects {
java.withJavadocJar() java.withJavadocJar()
jar { jar {
from(rootProject.file("LICENSE")) {
rename { "${it}_${mod_name}" }
}
manifest { manifest {
attributes([ attributes([
'Specification-Title' : mod_name, 'Specification-Title' : mod_name,
@ -23,6 +26,12 @@ subprojects {
} }
} }
sourcesJar {
from(rootProject.file("LICENSE")) {
rename { "${it}_${mod_name}" }
}
}
repositories { repositories {
mavenCentral() mavenCentral()
@ -38,7 +47,6 @@ subprojects {
} }
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8' it.options.encoding = 'UTF-8'