添加sourceJar task

This commit is contained in:
17146 2025-05-14 16:44:58 +08:00 committed by Light_Quanta
parent 4f301884f2
commit 24d77c71ba
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -217,6 +217,10 @@ publishing {
} }
} }
java {
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
} }