-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (96 loc) · 3.47 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
plugins {
id 'java'
id 'jacoco'
id 'java-library'
id "org.flywaydb.flyway" version '8.0.0'
id "org.sonarqube" version "4.4.1.3373"
id 'org.springframework.boot' version '3.1.3'
id 'io.spring.dependency-management' version '1.1.3'
}
group = 'fontys.ind'
version = '1.0-SNAPSHOT'
java {
sourceCompatibility = '17'
}
repositories {
mavenCentral()
}
// Software metrics
jacocoTestReport {
reports {
xml.required = true
}
}
flyway {
url = 'jdbc:mysql://localhost:3306/fitsphere'
user = 'root'
password = 'rihanna2912'
// url = 'jdbc:mysql://fitsphere-mysql-db-kulovkaloyan-5407.g.aivencloud.com:14206/defaultdb'
// user = 'avnadmin'
// password = 'AVNS_SaOAQ8IN496K-Sq6dud'
driver = 'com.mysql.cj.jdbc.Driver'
connectRetries = 10
baselineOnMigrate = true
}
sonar {
properties {
property "sonar.projectKey", "FitSphere"
property "sonar.organization", "Fontys"
property "sonar.host.url", "http://localhost:9000"
property "sonar.token", "sqp_d06d805b2c2388d4dfc5dd731b3b128ebe92a40b"
property "sonar.source", "src"
property "sonar.inclusions", "src/**"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.exclusions", [
"src/main/java/fontys/ind/configuration/**",
"src/main/java/fontys/ind/persistence/**",
"src/main/java/fontys/ind/domain/**",
"src/main/java/fontys/ind/controller/**"
]
}
}
dependencies {
// Spring Boot
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// JUnit
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
// Flyway
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql:8.4.4'
// Database
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java:8.0.28'
// MapStruct
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
// Commons Math
api 'org.apache.commons:commons-math3:3.6.1'
// Guava
implementation 'com.google.guava:guava:23.0'
// JJWT (JSON Web Token)
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// Springdoc OpenAPI
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
// Mockito & Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.mockito:mockito-junit-jupiter'
// Websockets and chatting
implementation 'org.springframework.boot:spring-boot-starter-websocket'
// implementation 'org.springframework.boot:spring-boot-starter-messaging'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// Additionally added
testImplementation 'org.springframework.security:spring-security-test'
}
test {
useJUnitPlatform()
}