-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
126 lines (108 loc) · 3.65 KB
/
build.gradle
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
buildscript {
ext {
springBootVersion = '2.7.3'
springBootManagementPlugin = '1.0.11.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "io.spring.gradle:dependency-management-plugin:${springBootManagementPlugin}"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7"
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "org.sonarqube"
group = 'org.paasta.container.platform.api'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco.xml"
}
}
repositories {
mavenCentral()
}
ext {
apacheHttpClientVersion = '4.5.12'
gsonVersion = '2.8.6'
lombokVersion = '1.18.12'
jacocoVersion = '0.8.5'
swaggerVersion = '2.9.2'
jjwtVersion = '0.9.1'
jsonpathVersion = '2.4.0'
springCloudVersion = '2021.0.3'
}
jar {
archivesBaseName = 'paas-ta-container-platform-api'
enabled = false
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-security"
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-aop"
compile "org.apache.httpcomponents:httpclient:${apacheHttpClientVersion}"
compile "com.google.code.gson:gson:${gsonVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
compile('org.springframework.boot:spring-boot-starter-freemarker')
compile "io.jsonwebtoken:jjwt:${jjwtVersion}"
compile("io.springfox:springfox-swagger2:${swaggerVersion}") {
exclude module: 'swagger-annotations'
exclude module: 'swagger-models'
}
compile("io.swagger:swagger-annotations:1.5.21")
compile("io.swagger:swagger-models:1.5.21")
compile "io.springfox:springfox-swagger-ui:${swaggerVersion}"
compile "com.jayway.jsonpath:json-path:${jsonpathVersion}"
compile 'com.fasterxml.jackson.core:jackson-core'
compile 'com.fasterxml.jackson.core:jackson-databind'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.3'
testCompile "org.springframework.boot:spring-boot-starter-test"
testImplementation('junit:junit:4.13')
implementation 'org.springframework.retry:spring-retry'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.9'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.9'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
implementation group: 'org.slf4j', name: 'jul-to-slf4j', version: '1.7.32'
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: '2.17.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.0'
compile( "org.springframework.cloud:spring-cloud-starter-vault-config")
compile 'commons-io:commons-io:2.11.0'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
jacoco {
toolVersion = "${jacocoVersion}"
reportsDir = file("$buildDir/jacocoReport")
}
test {
ignoreFailures = true
jacoco {
destinationFile = file("$buildDir/jacoco/jacoco-overall.exec")
}
finalizedBy("jacocoTestReport")
}
jacocoTestReport {
reports {
xml.enabled true
xml.destination file("build/reports/jacoco.xml")
}
}