Include LICENSE in the built artifacts
This commit is contained in:
parent
44c2968378
commit
3f825a4331
12
build.gradle
12
build.gradle
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user