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