-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (62 loc) · 1.95 KB
/
Copy pathbuild.gradle
File metadata and controls
71 lines (62 loc) · 1.95 KB
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
plugins {
id 'org.springframework.boot' version '2.3.1.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id "org.sonarqube" version "2.8"
id 'jacoco'
}
group = 'in.projecteka'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
task bootRunLocal {
bootRun.configure {
systemProperty "spring.profiles.active", 'local'
}
}
bootRunLocal.finalizedBy bootRun
dependencies {
compileOnly 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation 'org.springframework.boot:spring-boot-starter-web'
compile group: 'io.prometheus', name: 'simpleclient', version: '0.9.0'
compile group: 'io.prometheus', name: 'simpleclient_common', version: '0.9.0'
implementation('org.postgresql:postgresql')
implementation 'org.springframework.boot:spring-boot-starter-jdbc:2.3.2.RELEASE'
}
test {
useJUnitPlatform()
}
sonarqube {
properties {
property "sonar.projectKey", "ProjectEKA_gateway"
property "sonar.organization", "projecteka"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.login", "dd5db84dbf8f6dbd393291c26fe038ab54f00072"
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml'
}
}
jacocoTestReport {
additionalSourceDirs.from = files(sourceSets.main.allJava.srcDirs)
reports {
html.enabled true
xml.enabled true
csv.enabled false
html.destination file("build/reports/jacoco/html")
}
executionData.from = files('build/jacoco/test.exec')
}