添加sourceJar task
This commit is contained in:
parent
4f301884f2
commit
24d77c71ba
1 changed files with 4 additions and 0 deletions
|
@ -217,6 +217,10 @@ publishing {
|
|||
}
|
||||
}
|
||||
|
||||
java {
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue