Include LICENSE in the built artifacts
This commit is contained in:
parent
44c2968378
commit
3f825a4331
10
build.gradle
10
build.gradle
|
|
@ -7,6 +7,9 @@ subprojects {
|
|||
java.withJavadocJar()
|
||||
|
||||
jar {
|
||||
from(rootProject.file("LICENSE")) {
|
||||
rename { "${it}_${mod_name}" }
|
||||
}
|
||||
manifest {
|
||||
attributes([
|
||||
'Specification-Title' : mod_name,
|
||||
|
|
@ -23,6 +26,12 @@ subprojects {
|
|||
}
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
from(rootProject.file("LICENSE")) {
|
||||
rename { "${it}_${mod_name}" }
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
mavenCentral()
|
||||
|
|
@ -38,7 +47,6 @@ subprojects {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
|
||||
it.options.encoding = 'UTF-8'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user