-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (72 loc) · 2.43 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
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.9'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
//QueryDSL 2 QueryDSL plugins 추가
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}
group = 'tomato'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client' // MariaDB
implementation group: 'org.json', name: 'json', version: '20090211'
//QueryDSL 3 QueryDSL Dependencies 추가
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
implementation "com.querydsl:querydsl-apt:${queryDslVersion}"
implementation "com.querydsl:querydsl-core:${queryDslVersion}"
//Spring Security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity5', version: '3.0.4.RELEASE'
//Validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
//JWT
// testImplementation 'org.springframework.security:spring-security-test'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
}
//test {
// useJUnitPlatform()
//}
//QueryDSL 4 QueryDSL이 사용할 경로 설정
def querydslDir = "$buildDir/generated/querydsl"
//JPA 사용 여부와 사용할 경로 설정
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
//build 할 때 사용할 sourceSet 추가
sourceSets {
main.java.srcDir querydslDir
}
//QueryDSL 컴파일할 때 사용할 욥션 설정
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}
//QueryDSL이 compileClassPath를 상속하도록 설정
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
//QueryDSL 4 end