From eb5a93dce2f963ee8db8a25a4fe1174c29f32f62 Mon Sep 17 00:00:00 2001 From: MrIvanPlays Date: Sun, 9 Aug 2020 10:22:21 +0300 Subject: [PATCH] Attach sources and javadoc jar when deploying --- build.gradle | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index bda91d8..73f669f 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {