-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
152 lines (118 loc) · 3.47 KB
/
Copy pathbuild.gradle
File metadata and controls
152 lines (118 loc) · 3.47 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
plugins {
id 'org.springframework.boot' version '2.7.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "org.flywaydb.flyway" version "6.2.4"
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
id 'java'
}
group = 'com.kdt'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
ext {
set('springCloudVersion', "2021.0.3")
}
jar {
enabled = false
}
repositories {
mavenCentral()
}
dependencies {
//SPRING WEB
implementation 'org.springframework.boot:spring-boot-starter-web'
//SPRING SECURITY
implementation 'org.springframework.boot:spring-boot-starter-security'
//VALIDATION
implementation 'org.springframework.boot:spring-boot-starter-validation'
//JPA
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//QUERYDSL
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
implementation "com.querydsl:querydsl-apt:${queryDslVersion}"
//DB
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
// LOMBOK
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// SWAGGER
implementation 'org.springdoc:springdoc-openapi-ui:1.6.9'
implementation 'org.springdoc:springdoc-openapi-security:1.6.9'
//TEST
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
//JWT
implementation 'com.auth0:java-jwt:3.18.1'
implementation 'com.google.guava:guava:31.1-jre'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'commons-io:commons-io:2.11.0'
//FLYWAY
implementation "org.flywaydb:flyway-mysql"
implementation 'org.flywaydb:flyway-core:8.5.12'
testImplementation 'org.flywaydb.flyway-test-extensions:flyway-spring-test:7.0.0'
//JASYPT
implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.4'
//QLRM
implementation 'org.qlrm:qlrm:3.0.4'
// ANNOTATION PROCESSOR
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
//FEIGN CLIENT
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
//OAUTH
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
//Amazon S3
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
//CLOUD WATCH LOG
implementation group: 'ca.pjer', name: 'logback-awslogs-appender', version: '1.6.0'
//REDIS
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('compileJava') {
inputs.files(tasks.named('processResources'))
}
tasks.named('test') {
useJUnitPlatform()
}
/***************************
** QueryDSL Config Start **
***************************/
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
// 여기부터는 Gradle 5.0 이후로 추가 작성
compileQuerydsl{
options.annotationProcessorPath = configurations.querydsl
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
/***************************
*** QueryDSL Config End ***
***************************/
flyway {
configFiles = ['flyway.conf']
}