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()
|
||||
|
||||
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 {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user