fix sources jar gen in scala

This commit is contained in:
A.C.Sukazyo Eyre 2023-10-06 22:24:14 +08:00
parent 981098cf6e
commit 985fde9aa2
Signed by: Eyre_S
GPG Key ID: C17CE40291207874

View File

@ -92,6 +92,10 @@ dependencies {
} }
java {
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
sourceCompatibility proj_java.getMajorVersion() sourceCompatibility proj_java.getMajorVersion()
@ -144,9 +148,12 @@ buildConfig {
} }
tasks.withType(Jar).configureEach {
archiveBaseName.set proj_archive_name
}
shadowJar { shadowJar {
archiveBaseName.set proj_archive_name
archiveClassifier.set "fat" archiveClassifier.set "fat"
if (project.hasProperty("dockerBuild")) { if (project.hasProperty("dockerBuild")) {