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()
jar {
from(rootProject.file("LICENSE")) {
rename { "${it}_${mod_name}" }
}
manifest {
attributes([
'Specification-Title' : mod_name,
@ -22,7 +25,13 @@ subprojects {
])
}
}
sourcesJar {
from(rootProject.file("LICENSE")) {
rename { "${it}_${mod_name}" }
}
}
repositories {
mavenCentral()
@ -37,7 +46,6 @@ subprojects {
url = 'https://maven.blamejared.com'
}
}
tasks.withType(JavaCompile).configureEach {