refactor
This commit is contained in:
46
build.gradle
46
build.gradle
@@ -1,31 +1,34 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id 'maven-publish'
|
||||
id 'net.woggioni.plugins.multi-release-jar'
|
||||
id 'net.woggioni.gradle.lombok'
|
||||
}
|
||||
|
||||
group = "net.woggioni"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven {
|
||||
url = 'https://mvn.woggioni.net/'
|
||||
}
|
||||
}
|
||||
|
||||
lombok {
|
||||
version = getProperty('lombok.version')
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly group: "org.projectlombok", name: "lombok", version: lombokVersion
|
||||
annotationProcessor group: "org.projectlombok", name: "lombok", version: lombokVersion
|
||||
implementation group: 'net.woggioni', name: 'jwo', version: getProperty('jwo.version')
|
||||
|
||||
implementation group: 'net.woggioni', name: 'jwo', version: jwoVersion
|
||||
|
||||
testCompileOnly group: "org.projectlombok", name: "lombok", version: lombokVersion
|
||||
testAnnotationProcessor group: "org.projectlombok", name: "lombok", version: lombokVersion
|
||||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitJupiterVersion
|
||||
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
|
||||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: getProperty('junit.jupiter.version')
|
||||
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: getProperty('junit.jupiter.version')
|
||||
}
|
||||
|
||||
java {
|
||||
modularity.inferModulePath = true
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
compileTestJava {
|
||||
@@ -36,3 +39,20 @@ test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = 'https://mvn.woggioni.net/'
|
||||
}
|
||||
}
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wrapper {
|
||||
distributionType = Wrapper.DistributionType.BIN
|
||||
gradleVersion = getProperty('gradle.version')
|
||||
}
|
||||
|
Reference in New Issue
Block a user