59 lines
1.2 KiB
Groovy
59 lines
1.2 KiB
Groovy
plugins {
|
|
id 'maven-publish'
|
|
id 'net.woggioni.plugins.multi-release-jar'
|
|
id 'net.woggioni.gradle.lombok'
|
|
}
|
|
|
|
group = "net.woggioni"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url = 'https://mvn.woggioni.net/'
|
|
}
|
|
}
|
|
|
|
lombok {
|
|
version = getProperty('lombok.version')
|
|
}
|
|
|
|
dependencies {
|
|
implementation group: 'net.woggioni', name: 'jwo', version: getProperty('jwo.version')
|
|
|
|
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 {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
compileTestJava {
|
|
options.compilerArgs << '-parameters'
|
|
}
|
|
|
|
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')
|
|
}
|