added javadoc and source jar to publication

This commit is contained in:
2021-07-24 18:19:50 +02:00
parent 8ea2268491
commit 580fcb430c

View File

@@ -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<Zip> pathClassLoaderTestBundleTask = tasks.register("pathClassLoaderTestBundle", Zip) {
from(configurations.pathClassloaderTest)
archiveBaseName = "pathClassLoaderTestBundle"