-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (42 loc) ยท 1.23 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
plugins {
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" // ์ธ๋ถ ํ๋ฌ๊ทธ์ธ ์ ์ฉ
}
/**
* bootJar ๋ ์คํ ๊ฐ๋ฅํ jar์ ๋ง๋ค๊ธฐ์, main ํจ์ ํ์
* main ํจ์๊ฐ ์๋ ๋ชจ๋์ด๋ฏ๋ก enabled = false ์ค์ ์ถ๊ฐ
*/
bootJar {
enabled = false
}
jar {
enabled = true
}
/**
* implementation ์ ์ง์ ์์กดํ๋ ๋ชจ๋์์๋ง ์ฐธ์กฐ๊ฐ๋ฅํ๋ค.
* compile(Gradle 7.0 ๋ฏธ๋ง) ํน์ api(Gradle 7.0 ์ด์) ์ ํ์ฌ ๋ชจ๋์ ์์กดํ๋ ๋ค๋ฅธ ๋ชจ๋๋ค๋ ์ฐธ์กฐ๊ฐ๋ฅํ๋ค.
*/
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.querydsl:querydsl-jpa'
testImplementation 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
}
// QClass ์์ฑ ์์น
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
library = 'com.querydsl:querydsl-apt'
jpa = true
querydslSourcesDir = querydslDir
}
// QClass ์์ค ์์น ์ง์
sourceSets {
main.java.srcDir querydslDir
}
// gradle 5.0 ์ค์
configurations {
querydsl.extendsFrom compileClasspath
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}