-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
executable file
·100 lines (76 loc) · 2.7 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
plugins {
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.ewerk.gradle.plugins.querydsl' version '1.0.10'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 11
targetCompatibility = 11
compileJava.options.encoding = 'UTF-8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains:annotations:19.0.0'
// Spring Boot Starter
testImplementation ('org.springframework.boot:spring-boot-starter-test')
implementation('org.springframework.boot:spring-boot-starter')
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// Lombok
implementation ('org.projectlombok:lombok')
compileOnly ('org.projectlombok:lombok:1.18.16')
annotationProcessor ('org.projectlombok:lombok:1.18.16')
// DB
runtimeOnly ('mysql:mysql-connector-java') //mysql8
implementation ('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework.boot:spring-boot-starter-data-jpa') //mysql 5버전의 경우 삭제.
// Swagger2 gradle
implementation 'io.springfox:springfox-swagger2:2.9.2'
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
// Web
implementation ('org.springframework.boot:spring-boot-starter-web')
// Security, Authentication
implementation('org.springframework.boot:spring-boot-starter-security')
compile(group: 'io.jsonwebtoken', name: 'jjwt', version: '0.7.0')
compile('io.jsonwebtoken:jjwt:0.9.0')
implementation 'commons-io:commons-io:2.11.0'
implementation 'com.querydsl:querydsl-jpa'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk14', version: '1.55' //Thanks for using https://jar-download.com
// h2
implementation('com.h2database:h2') // 인메모리 관계형 DB
// S3
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
// 카카오
implementation 'com.google.code.gson:gson:2.9.0'
implementation('org.springframework.boot:spring-boot-starter-oauth2-client')
}
test {
useJUnitPlatform()
}
// querydsl
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}