-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
123 lines (118 loc) · 4.59 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
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.container.terraman.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 {
springIoPlatformVersion = 'Cairo-SR8'
apacheHttpClientVersion = '4.5.12'
gsonVersion = '2.8.6'
lombokVersion = '1.18.12'
jacocoVersion = '0.8.5'
jjwtVersion = '0.9.1'
jsonpathVersion = '2.4.0'
springCloudVersion = '2021.0.3'
// jschVersion = '0.1.55'
mariaDbVersion = '3.0.4'
}
jar {
archivesBaseName = 'container-terraman-api'
enabled = false
}
dependencies {
compileOnly 'com.google.code.findbugs:annotations:3.0.1'
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
compile 'junit:junit:4.13.1'
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.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.boot:spring-boot-starter-jdbc"
implementation 'org.springframework.boot:spring-boot-starter-validation'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile "org.apache.httpcomponents:httpclient:${apacheHttpClientVersion}"
compile "com.google.code.gson:gson:${gsonVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
compile "io.jsonwebtoken:jjwt:${jjwtVersion}"
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'
testCompile "org.springframework.boot:spring-boot-starter-test"
implementation 'org.mariadb.jdbc:mariadb-java-client:2.7.5'
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'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
compile( "org.springframework.cloud:spring-cloud-starter-vault-config")
// implementation "com.jcraft:jsch:${jschVersion}"
implementation 'commons-io:commons-io:2.11.0'
testImplementation('org.mockito:mockito-inline:3.4.0')
implementation files('libs/jsch-0.2.7.jar')
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '5.0.0-alpha.11'
implementation group: 'org.json', name: 'json', version: '20231013'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.16.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")
}
}