Merge pull request #429 from MrIvanPlays/patch/gradle-improvements

Attach sources and javadoc jar when deploying
This commit is contained in:
PiggyPiglet 2020-12-14 07:58:07 +08:00 committed by GitHub
commit f799835dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,11 +37,16 @@ processResources {
} }
} }
tasks.withType(JavaCompile) { java {
options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
} }
shadowJar { shadowJar {