-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (81 loc) · 2.84 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
plugins {
id 'java'
id 'maven-publish'
id 'org.springframework.boot' version '3.0.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'jacoco'
}
group = 'dev.mgbarbosa.urlshortener'
version = '0.1.0'
description = 'url-shortener'
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
jcenter()
mavenCentral()
}
configurations {
all*.exclude module : 'spring-boot-starter-logging'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb:3.0.0'
implementation 'org.springframework.boot:spring-boot-starter-web:3.0.0'
implementation 'org.springframework.boot:spring-boot-starter-security:3.0.0'
implementation 'org.springframework.security:spring-security-core:6.0.0'
implementation 'org.springframework.security:spring-security-test:6.0.0'
implementation 'org.springframework.boot:spring-boot-starter-validation:3.0.0'
implementation 'org.springframework.data:spring-data-redis:3.0.0'
implementation 'org.slf4j:slf4j-api:2.0.6'
implementation 'org.slf4j:slf4j-simple:2.0.6'
implementation 'org.mindrot:jbcrypt:0.4'
implementation 'com.auth0:java-jwt:4.2.1'
implementation 'io.lettuce:lettuce-core:6.2.1.RELEASE'
implementation 'dev.failsafe:failsafe:3.2.4'
implementation 'org.projectlombok:lombok:1.18.24'
implementation 'com.github.javafaker:javafaker:1.0.2'
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'it.ozimov:embedded-redis:0.7.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}
test {
// Enable JUnit 5 (Gradle 4.6+).
useJUnitPlatform()
// Always run tests, even when nothing changed.
dependsOn 'cleanTest'
systemProperty('spring.profiles.active', 'test')
// Show test results.
testLogging {
events "passed", "skipped", "failed"
}
}
bootRun {
var isProduction = System.getenv("ENVIRONMENT")
if (!isProduction) {
systemProperty('spring.config.import', 'optional:file:.env[.properties]')
}
jvmArgs("-DconfigFileName=config/application.deployment.yaml", "-DchecksumEnabled=false")
}
jacoco {
toolVersion = "0.8.8"
}
jacocoTestReport {
dependsOn 'test'
reports {
xml.required = true
xml.enabled true
html.enabled true
}
afterEvaluate {
classDirectories.from = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: [
])
})
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}