-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (89 loc) · 3.32 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id 'jacoco'
}
group = 'com.karadyauran'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
postgreVersion = '42.7.1'
nycodeVersion = '2.3.0'
jbcryptVersion = '0.4'
mapstuctVersion = '1.5.5.Final'
mapstuctProcessorVersion = '1.5.5.Final'
springDocVersion = '2.2.0'
}
dependencies {
testImplementation 'org.springframework.boot:spring-boot-testcontainers'
testImplementation 'org.testcontainers:postgresql'
// Lombok for Simplifying Java Code
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation group: 'com.h2database', name: 'h2', version: '2.2.224'
// Spring Boot Core Dependencies
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation group: 'org.springframework.security', name: 'spring-security-web', version: '6.2.1'
implementation "org.springframework.boot:spring-boot-starter-security"
testImplementation group: 'org.springframework.security', name: 'spring-security-test', version: '6.2.2'
// Security token
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.12.3'
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.12.3'
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.12.3'
// PostgreSQL Database Dependencies
implementation group: 'org.postgresql', name: 'postgresql', version: postgreVersion
// Flyway for Database Version Control
implementation 'org.flywaydb:flyway-core'
// Password Hashing Dependencies
implementation "de.nycode:bcrypt:${nycodeVersion}"
implementation "org.mindrot:jbcrypt:${jbcryptVersion}"
// Testing Dependencies
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.10.0'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.2'
// Swagger
implementation group: 'io.swagger.core.v3', name: 'swagger-core', version: '2.2.20'
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.3.0'
// Docker
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
// Mapper
implementation group: 'org.mapstruct', name: 'mapstruct', version: mapstuctVersion
annotationProcessor group: 'org.mapstruct', name: 'mapstruct-processor', version: mapstuctProcessorVersion
}
tasks.named('test') {
useJUnitPlatform()
}
test {
finalizedBy jacocoTestReport
}
jacocoTestCoverageVerification {
violationRules {
rule {
enabled = true
limit {
minimum = 0.25
}
}
}
}
jacocoTestReport {
dependsOn test
}
check {
dependsOn jacocoTestCoverageVerification
}