Attach sources and javadoc jar when deploying

This commit is contained in:
MrIvanPlays 2020-08-09 10:22:21 +03:00
parent c648d6a541
commit eb5a93dce2
No known key found for this signature in database
GPG Key ID: BC975C392D9CA3A3
1 changed files with 8 additions and 3 deletions

View File

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