mirror of
https://github.com/HMCore/Core.git
synced 2025-12-12 13:56:19 +00:00
Update build.gradle
This commit is contained in:
22
build.gradle
22
build.gradle
@@ -6,11 +6,25 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'com.github.HMCore'
|
group 'com.github.HMCore'
|
||||||
version '1.0-SNAPSHOT'
|
version '1.1-SNAPSHOT'
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
targetCompatibility = 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 {
|
repositories {
|
||||||
@@ -30,3 +44,9 @@ dependencies {
|
|||||||
test {
|
test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
javadoc {
|
||||||
|
if(JavaVersion.current().isJava9Compatible()) {
|
||||||
|
options.addBooleanOption('html5', true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user