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"
|
||||
|
||||
task sourceJar(type: Jar) {
|
||||
from sourceSets.main.output
|
||||
from sourceSets.main.allJava
|
||||
archiveClassifier("sources")
|
||||
archiveClassifier = "sources"
|
||||
|
||||
manifest {
|
||||
attributes([
|
||||
|
@ -90,6 +89,6 @@ publishing {
|
|||
|
||||
compileJava.finalizedBy("sourceJar")
|
||||
artifacts {
|
||||
jar
|
||||
sourceJar
|
||||
archives jar
|
||||
archives sourceJar
|
||||
}
|
Loading…
Reference in a new issue