66 lines
1.4 KiB
Groovy
66 lines
1.4 KiB
Groovy
plugins {
|
|
id 'maven-publish'
|
|
id 'net.woggioni.gradle.multi-release-jar'
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
}
|
|
|
|
|
|
allprojects {
|
|
group = "net.woggioni"
|
|
version = getProperty('version.klevtree')
|
|
|
|
repositories {
|
|
maven {
|
|
url = woggioniMavenRepositoryUrl
|
|
}
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
ext {
|
|
setProperty('jpms.module.name', 'net.woggioni.klevtree')
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform(group: 'com.lys', name: 'lys-dependencies', version: getProperty('version.lys'))
|
|
implementation group: 'net.woggioni', name: 'jwo'
|
|
|
|
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api'
|
|
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params'
|
|
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine'
|
|
testRuntimeOnly group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl'
|
|
}
|
|
|
|
compileJava {
|
|
options.release = 8
|
|
options.compilerArgs << '-parameters'
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.with {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
wrapper {
|
|
distributionType = Wrapper.DistributionType.BIN
|
|
gradleVersion = getProperty('version.gradle')
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
url = 'https://mvn.woggioni.net/'
|
|
}
|
|
}
|
|
publications {
|
|
maven(MavenPublication) {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|