added lombok plugin
This commit is contained in:
13
build.gradle
13
build.gradle
@@ -1,9 +1,11 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
|
id 'net.woggioni.gradle.lombok' apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
|
apply plugin: 'net.woggioni.gradle.lombok'
|
||||||
group = "net.woggioni"
|
group = "net.woggioni"
|
||||||
version = jwoVersion
|
version = jwoVersion
|
||||||
|
|
||||||
@@ -14,18 +16,13 @@ allprojects {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
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-api', version: junitJupiterVersion
|
||||||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitJupiterVersion
|
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitJupiterVersion
|
||||||
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
|
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
|
||||||
}
|
}
|
||||||
|
lombok {
|
||||||
|
version = lombokVersion
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
sbt.version=1.4.3
|
|
@@ -1,5 +0,0 @@
|
|||||||
object Versions {
|
|
||||||
val slf4j = "1.7.30"
|
|
||||||
val log4j = "2.13.2"
|
|
||||||
val lombok = "1.18.16"
|
|
||||||
}
|
|
@@ -1,9 +0,0 @@
|
|||||||
resolvers += Resolver.jcenterRepo
|
|
||||||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
|
|
||||||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
|
|
||||||
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "4.1.0")
|
|
||||||
addSbtPlugin("net.aichler" % "sbt-jupiter-interface" % "0.8.4-SNAPSHOT")
|
|
||||||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.6")
|
|
||||||
addSbtPlugin("com.thoughtworks.sbt" % "delombokjavadoc" % "1.0.0+66-8fbcf18c")
|
|
||||||
|
|
||||||
//addSbtPlugin("com.thoughtworks.sbt" % "delombokjavadoc" % "latest.release")
|
|
@@ -1,3 +1,16 @@
|
|||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = 'https://woggioni.net/mvn/'
|
||||||
|
}
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id "net.woggioni.gradle.lombok" version "0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rootProject.name = 'jwo'
|
rootProject.name = 'jwo'
|
||||||
|
|
||||||
include('benchmark')
|
include('benchmark')
|
||||||
|
Reference in New Issue
Block a user