diff --git a/build.gradle b/build.gradle index f0f13b9..fb41696 100644 --- a/build.gradle +++ b/build.gradle @@ -6,11 +6,25 @@ plugins { } group 'com.github.HMCore' -version '1.0-SNAPSHOT' +version '1.1-SNAPSHOT' java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 + withJavadocJar() + withSourcesJar() +} + +publishing { + publications { + maven(MavenPublication) { + groupId = 'com.github.HMCore' + artifactId = 'Core' + version = '1.1' + + from components.java + } + } } repositories { @@ -30,3 +44,9 @@ dependencies { test { useJUnitPlatform() } + +javadoc { + if(JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption('html5', true) + } +}