-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (64 loc) · 2.07 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
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.5'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
archivesBaseName = 'hola-api-deploy'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.flywaydb:flyway-mysql'
implementation 'mysql:mysql-connector-java:8.0.29'
implementation 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompileOnly 'org.projectlombok:lombok'
implementation group: 'org.javassist', name: 'javassist', version: '3.15.0-GA'
implementation 'junit:junit:4.13.1'
implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.3'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'io.jsonwebtoken:jjwt-api:0.11.1'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.1', 'io.jsonwebtoken:jjwt-jackson:0.11.1'
implementation group: 'commons-io', name: 'commons-io', version: '2.7'
implementation 'ch.qos.logback:logback-classic:1.2.9'
implementation 'ch.qos.logback:logback-core:1.2.9'
implementation 'org.json:json:20220924'
}
//sourceSets {
// main {
// resources {
// srcDirs("src/main/resources")
// }
// }
//}
jar {
enabled = false
}
bootRun {
String activeProfile = System.properties['--spring.profiles.active']
println "PROFILE: $activeProfile"
systemProperty "spring.profiles.active", activeProfile
}
tasks {
processResources {
duplicatesStrategy = org.gradle.api.file.DuplicatesStrategy.INCLUDE
}
}
test {
useJUnitPlatform()
}
//tasks.named('test') {
// useJUnitPlatform()
//}