-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
76 lines (60 loc) · 2.24 KB
/
build.gradle
File metadata and controls
76 lines (60 loc) · 2.24 KB
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
plugins {
id 'java'
id 'groovy'
id 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '11'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
bootJar {
archiveFileName = 'app.jar'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//spock
testImplementation 'org.spockframework:spock-core:2.1-groovy-3.0'
testImplementation 'org.spockframework:spock-spring:2.1-groovy-3.0'
// https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy
implementation 'net.bytebuddy:byte-buddy:1.12.10'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// test container
// https://mvnrepository.com/artifact/org.testcontainers/mariadb
testImplementation 'org.testcontainers:mariadb:1.19.1'
testImplementation 'org.testcontainers:spock:1.19.1'
implementation 'org.springframework.retry:spring-retry'
// mockWebServer
testImplementation('com.squareup.okhttp3:okhttp:4.10.0')
testImplementation('com.squareup.okhttp3:mockwebserver:4.10.0')
// handlebars
implementation 'pl.allegro.tech.boot:handlebars-spring-boot-starter:0.3.4'
// https://mvnrepository.com/artifact/io.seruco.encoding/base62
implementation 'io.seruco.encoding:base62:0.1.3'
}
tasks.named('test') {
useJUnitPlatform()
}
// $ ./gradlew clean build -PKAKAO_REST_API_KEY={api key 값} 명령어로 전체 테스트 및 빌드하여 jar 파일 생성
processTestResources {
boolean hasProperty = project.hasProperty("KAKAO_REST_API_KEY")
System.out.println("Set kakao rest api key: $hasProperty")
filesMatching('**/application.yml') {
expand(project.properties)
}
}