From 580fcb430c76c6f60a522cc7ca2f3a0aa43636ae Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Sat, 24 Jul 2021 18:19:50 +0200 Subject: [PATCH] added javadoc and source jar to publication --- build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 4764598..eb67144 100644 --- a/build.gradle +++ b/build.gradle @@ -36,8 +36,11 @@ dependencies { pathClassloaderTest group: 'com.google.inject', name: 'guice', version: getProperty('guice.version') } -compileJava { - options.release = 8 +java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + withJavadocJar() + withSourcesJar() } jar { @@ -47,6 +50,7 @@ jar { ]) } } + TaskProvider pathClassLoaderTestBundleTask = tasks.register("pathClassLoaderTestBundle", Zip) { from(configurations.pathClassloaderTest) archiveBaseName = "pathClassLoaderTestBundle"