added lombok plugin

This commit is contained in:
2021-06-17 08:22:09 +01:00
parent 4537bcf3ba
commit e7ff279c9e
5 changed files with 18 additions and 23 deletions

View File

@@ -1,9 +1,11 @@
plugins {
id 'maven-publish'
id 'net.woggioni.gradle.lombok' apply false
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'net.woggioni.gradle.lombok'
group = "net.woggioni"
version = jwoVersion
@@ -14,18 +16,13 @@ allprojects {
mavenCentral()
}
dependencies {
['', 'test'].each {sourceSetName ->
['compileOnly', 'annotationProcessor'].each { configurationSuffix ->
String configurationName
if(sourceSetName) configurationName = sourceSetName + configurationSuffix.capitalize()
else configurationName = configurationSuffix
add(configurationName, [group: "org.projectlombok", name: "lombok", version: lombokVersion])
}
}
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitJupiterVersion
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitJupiterVersion
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
}
lombok {
version = lombokVersion
}
}
dependencies {