Update build script to produce a sources jar at the same time as a normal jar

This commit is contained in:
Zontreck 2023-08-02 00:23:32 -07:00
parent 2ab68ce7f3
commit d4a83ba627

View file

@ -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
} }