-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
106 lines (81 loc) · 2.9 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
buildscript {
ext {
springBootVersion = '3.1.7'
}
ext['spring-security.version']='6.3.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:1.1.4"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'pothole_solution'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
// postgreSQL
runtimeOnly 'org.postgresql:postgresql'
// 쿼리 인자값 확인
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.1'
// redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// spring session & security
implementation("org.springframework.session:spring-session-data-redis")
implementation 'org.springframework.boot:spring-boot-starter-security'
// Point, Polygon 객체 사용
implementation 'org.hibernate.orm:hibernate-spatial'
// slack
implementation("com.slack.api:bolt:1.39.0")
implementation("com.slack.api:bolt-servlet:1.39.0")
implementation("com.slack.api:bolt-jetty:1.39.0")
//QueryDsl
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// s3
implementation platform("io.awspring.cloud:spring-cloud-aws-dependencies:3.1.1")
implementation 'io.awspring.cloud:spring-cloud-aws-starter-s3'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.0.3'
implementation 'org.springframework.cloud:spring-cloud-commons:4.0.3'
}
// QueryDSL 추가
// QClass 위치 지정
def generated = 'src/main/generated'
// Gradle이 자바 컴파일 작업을 수행할 때, 생성된 QClass들을 해당 위치에 저장하도록 지시한다.
tasks.withType(JavaCompile).configureEach {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}
// 개발 환경에서 생성된 Q 클래스를 사용할 수 있도록 java source set 에 querydsl QClass 위치 추가
sourceSets {
main.java.srcDirs += [ generated ]
}
// gradle clean 시에 QClass 디렉토리 삭제
clean {
delete file(generated)
}
tasks.named('test') {
useJUnitPlatform()
}
}