Update build script to produce a sources jar at the same time as a normal jar
This commit is contained in:
parent
2ab68ce7f3
commit
d4a83ba627
1 changed files with 3 additions and 4 deletions
|
@ -54,9 +54,8 @@ dependencies {
|
||||||
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
|
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
|
||||||
|
|
||||||
task sourceJar(type: Jar) {
|
task sourceJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
|
||||||
from sourceSets.main.allJava
|
from sourceSets.main.allJava
|
||||||
archiveClassifier("sources")
|
archiveClassifier = "sources"
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes([
|
attributes([
|
||||||
|
@ -90,6 +89,6 @@ publishing {
|
||||||
|
|
||||||
compileJava.finalizedBy("sourceJar")
|
compileJava.finalizedBy("sourceJar")
|
||||||
artifacts {
|
artifacts {
|
||||||
jar
|
archives jar
|
||||||
sourceJar
|
archives sourceJar
|
||||||
}
|
}
|
Loading…
Reference in a new issue