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"