blob: 76b1d428d50fa2e6b6953906ba24a75e7617682a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
plugins {
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.portal-ng'
version rootProject.file('version').text.trim()
dependencies {
implementation project(':openapi:server')
implementation project(':openapi:client-portal-prefs')
implementation project(':openapi:client-portal-history')
implementation project(':openapi:client-portal-keycloak')
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation "org.zalando:jackson-datatype-problem:$problemVersion"
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
implementation "org.zalando:problem-spring-webflux:$problemSpringVersion"
implementation "org.mapstruct:mapstruct:$mapStructVersion"
implementation "org.mapstruct.extensions.spring:mapstruct-spring-annotations:$mapStructExtensionsVersion"
implementation "org.mapstruct.extensions.spring:mapstruct-spring-extensions:$mapStructExtensionsVersion"
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 {
archiveBaseName.set('bff')
dependencies {
include(project(':openapi:server'))
include(project(':openapi:client-portal-history'))
include(project(':openapi:client-portal-prefs'))
include(project(':openapi:client-portal-keycloak'))
}
}
publishing {
publications {
bffLibrary(MavenPublication) {
artifactId = rootProject.name
groupId = group
version = version
artifacts = ["build/libs/bff-$version-all.jar"]
pom {
name = rootProject.name
description = 'portal-ng backend-for-frontend service'
}
}
}
// https://gitlab.devops.telekom.de/tnap/development/tesla-team/portal-community/bff/-/blob/pipeline/lib/build.gradle#L60
repositories{
mavenCentral()
// maven {
// url "${maven_central_url}"
// credentials {
// username = "${artifactory_user}"
// password = "${artifactory_password}"
// }
// }
}
}
spotless {
java {
target project.fileTree(project.projectDir) {
include '**/*.java'
exclude '**/build/**'
exclude '**/generated-sources/**'
}
removeUnusedImports()
trimTrailingWhitespace()
googleJavaFormat('1.15.0')
}
}
tasks.withType(JavaCompile) {
dependsOn 'spotlessApply'
}
spotbugs {
ignoreFailures = false
reportLevel = "high"
excludeFilter = file("$rootProject.projectDir/spotbugs-exclude.xml")
}
|