Files
wdi/build.gradle

69 lines
1.5 KiB
Groovy

plugins {
id 'maven-publish'
id 'net.woggioni.gradle.multi-release-jar'
id 'net.woggioni.gradle.lombok' apply false
}
ext {
setProperty("jpms.module.name" , "net.woggioni.wdi")
}
allprojects {
apply plugin: 'net.woggioni.gradle.lombok'
group = "net.woggioni"
version = getProperty("wdi.version")
repositories {
mavenLocal()
maven {
url = 'https://woggioni.net/mvn'
}
mavenCentral()
}
lombok {
version = getProperty('lombok.version')
}
test {
useJUnitPlatform()
}
}
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'
}
publishing {
repositories {
maven {
url = 'https://mvn.woggioni.net/'
}
}
publications {
maven(MavenPublication) {
from(components["java"])
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = getProperty('gradle.version')
}