diff --git a/api/build.gradle b/api/build.gradle index c01246366..a571b2a53 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'java' + id 'java-library' } dependencies { diff --git a/build.gradle b/build.gradle index da7b4b303..74af0936c 100644 --- a/build.gradle +++ b/build.gradle @@ -28,24 +28,33 @@ subprojects { apply plugin: 'org.cadixdev.licenser' apply plugin: 'maven-publish' + java { + toolchain { + languageVersion = JavaLanguageVersion.of(11) + } + withJavadocJar() + withSourcesJar() + } + + javadoc { + if(JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption('html5', true) + } + } + publishing { publications { - shadow(MavenPublication) { + mavenJava(MavenPublication) { groupId projectGroup artifactId project.name version projectVersion - artifact shadowJar + artifact jar + artifact javadocJar + artifact sourcesJar } } } - java { - toolchain { - languageVersion = JavaLanguageVersion.of(11) - } - withJavadocJar() - } - license { header = project.rootProject.file('HEADER.txt') include '**/*.java'