blob: d219c24908a151366e17292dc1f520286dbef3a8 (
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
|
apply plugin: 'application'
apply plugin: 'org.springframework.boot'
apply plugin: 'com.gorylenko.gradle-git-properties'
apply plugin: 'jacoco'
apply plugin: 'com.diffplug.spotless'
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:$springCloudVersion"
}
}
dependencies {
implementation project(':openapi:server')
implementation project(':openapi:client-portal-prefs')
implementation project(':openapi:client-portal-history')
implementation project(':openapi:client-portal-keycloak')
implementation project(':lib')
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:problem:$problemVersion"
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"
annotationProcessor "org.mapstruct:mapstruct-processor:$mapStructVersion"
implementation "org.mapstruct.extensions.spring:mapstruct-spring-annotations:$mapStructExtensionsVersion"
implementation "org.mapstruct.extensions.spring:mapstruct-spring-extensions:$mapStructExtensionsVersion"
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.rest-assured:rest-assured'
}
mainClassName = 'org.onap.portalng.bff.Application'
bootJar {
launchScript()
enabled = true
excludes = ['**/application-local.yml', '**/application-development.yml', '**/log4j.xml']
}
springBoot {
buildInfo {
properties {
artifact = 'org-onap-portalng-bff'
version = getVersion()
group = rootProject.group
name = 'portal-ng backend for frontend'
}
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
test.finalizedBy jacocoTestReport
configurations.implementation.setCanBeResolved(true)
spotless {
java {
removeUnusedImports()
trimTrailingWhitespace()
googleJavaFormat('1.15.0')
}
}
tasks.withType(JavaCompile) {
dependsOn 'spotlessApply'
}
|