aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-08-22 09:58:20 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-08-22 10:05:58 +0000
commita42b5abcbb1bea0b20374500a2a294f31de1927a (patch)
tree142508e32ec0caef7c87edfb5428bc2fe6164a0f /lib
parent6bd5a8e1de4307a55a1129e2f2015599ef00acf3 (diff)
Migrate away from legacy gradle buildscript syntax
- replace the buildscript way of declaring plugins with the plugins {} block - have duplicate openapi client declarations since programmatic way of registering openapiGenerate task does not seem to be working Issue-ID: PORTALNG-47 Change-Id: I9e007127726e558363409d1b224dc7b2b9e52719 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/build.gradle28
1 files changed, 19 insertions, 9 deletions
diff --git a/lib/build.gradle b/lib/build.gradle
index bb4d9f5..48997c3 100644
--- a/lib/build.gradle
+++ b/lib/build.gradle
@@ -1,11 +1,11 @@
plugins {
- id 'com.gorylenko.gradle-git-properties'
- id 'jacoco'
- id 'com.github.johnrengelman.shadow'
- id 'maven-publish'
- id 'java-library'
- id 'com.diffplug.spotless'
- id 'com.github.spotbugs'
+ id 'java'
+ id 'org.springframework.boot'
+ id 'io.spring.dependency-management'
+ id 'com.github.johnrengelman.shadow' //
+ id 'maven-publish' // publish lib jar to artifact repository
+ id 'com.diffplug.spotless' // code formatting
+ id 'com.github.spotbugs' // bug linting that can be picked up by IDE
}
group 'org.onap.portalng'
@@ -33,6 +33,18 @@ dependencies {
annotationProcessor "org.mapstruct:mapstruct-processor:$mapStructVersion"
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
+
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ testCompileOnly "org.projectlombok:lombok:$lombokVersion"
+ testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
+}
+
+bootJar {
+ enabled = false
+}
+jar {
+ enabled = true
}
shadowJar {
@@ -84,14 +96,12 @@ spotless {
googleJavaFormat('1.15.0')
}
}
-
tasks.withType(JavaCompile) {
dependsOn 'spotlessApply'
}
spotbugs {
ignoreFailures = false
- effort = "max"
reportLevel = "high"
excludeFilter = file("$rootProject.projectDir/spotbugs-exclude.xml")
} \ No newline at end of file