aboutsummaryrefslogtreecommitdiffstats
path: root/lib/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'lib/build.gradle')
-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