-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
86 lines (66 loc) · 2.04 KB
/
build.gradle
File metadata and controls
86 lines (66 loc) · 2.04 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
77
78
79
80
81
82
83
84
85
86
buildscript {
ext {
springBootVersion = '2.1.3.RELEASE'
querydslPluginVersion = '1.0.10'
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" } // plugin 저장소
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:${querydslPluginVersion}")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'org.dailystudio'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
compile("com.querydsl:querydsl-jpa") // querydsl
compile("com.querydsl:querydsl-apt") // querydsl
runtimeOnly('com.h2database:h2')//h2
compile("org.springframework.boot:spring-boot-devtools")
runtimeOnly 'mysql:mysql-connector-java'//mysql
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'//jpa
implementation('io.springfox:springfox-swagger2:+')//swagger
implementation('io.springfox:springfox-swagger-ui:+')
compile "org.projectlombok:lombok:+"//lombok
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation('com.auth0:java-jwt:3.3.0') //jwt
compile('org.springframework.boot:spring-boot-starter-aop') // aop
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompile('org.assertj:assertj-core:3.9.0')//test용
}
// querydsl 적용
apply plugin: "com.ewerk.gradle.plugins.querydsl" // Plugin 적용
def querydslSrcDir = 'src/main/generated' //QClass 생성 위치
querydsl {
library = "com.querydsl:querydsl-apt"
jpa = true
querydslSourcesDir = querydslSrcDir
}
sourceSets {
main {
java {
srcDirs 'src/main/java', querydslSrcDir
}
}
}
//JPA Annotation Processor Error를 잡아준다.
compileQuerydsl{
options.annotationProcessorPath = configurations.querydsl
}
configurations {
querydsl.extendsFrom compileClasspath
}