-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
119 lines (94 loc) · 2.99 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
plugins {
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'idea'
id 'jacoco'
id "org.sonarqube" version "3.3"
}
group 'ch.uzh.ifi.hase'
version '1.0.0'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(15))
}
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
repositories {
mavenCentral()
}
springBoot {
mainClass.set('ch.uzh.ifi.hase.soprafs22.Application')
}
dependencies {
implementation 'org.mapstruct:mapstruct:1.3.1.Final'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'junit:junit:4.13.1'
implementation 'junit:junit:4.13.1'
implementation 'junit:junit:4.13.1'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.3.1.Final'
testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.3.1.Final'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation 'se.michaelthelin.spotify:spotify-web-api-java:7.0.0'
implementation 'org.springframework.boot:spring-boot-starter-websocket:2.6.5'
implementation 'org.postgresql:postgresql:42.3.4'
implementation 'org.springframework:spring-jdbc:5.3.19'
implementation 'org.junit-pioneer:junit-pioneer:1.7.0'
}
bootJar {
archiveFileName = "${archiveBaseName.get()}.${archiveExtension.get()}"
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
maxParallelForks = 1
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
jacoco {
toolVersion = "0.8.6"
reportsDirectory = file("$buildDir/jacocoReportDir")
}
jacocoTestReport {
group = "Reporting"
reports {
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
File secretPropsFile = file('./local.properties')
if (secretPropsFile.exists()) {
Properties p = new Properties()
p.load(new FileInputStream(secretPropsFile))
p.each { name, value ->
ext[name] = value
}
}
sonarqube {
properties {
property "sonar.projectKey", "sopra-fs22-group-17_RaveWave-server"
property "sonar.organization", "sopra-fs22-group-17"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", ["$buildDir/jacocoReportDir/test/jacocoTestReport.xml"]
property "sonar.cpd.exclusions", "**/entity/*.java,**/rest/dto/*.java"
}
}
project.tasks["sonarqube"].dependsOn {
test
}
defaultTasks 'bootJar', 'build'