-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (73 loc) ยท 2.91 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
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'io.franzbecker.gradle-lombok' version '1.8'
}
group = 'com.rubycon'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('snippetsDir', file("build/generated-snippets"))
}
// Start Zip with .ebextensions
bootJar {
from('./.ebextensions') { into '.ebextensions' }
}
// End Zip with .ebextensions
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// spring-data-redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// AOP
implementation 'org.springframework.boot:spring-boot-starter-aop'
// ์์
๋ก๊ทธ์ธ ๋ฑ ํด๋ผ์ด์ธํธ ์
์ฅ์์ ์์
๊ธฐ๋ฅ ๊ตฌํ ์ ํ์ํ ์์กด์ฑ
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
// Spring Security OAuth2
implementation group: 'org.springframework.security.oauth.boot', name: 'spring-security-oauth2-autoconfigure', version: '2.3.2.RELEASE'
// JWT
implementation group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Mysql
runtimeOnly 'mysql:mysql-connector-java'
// H2
runtimeOnly 'com.h2database:h2'
// embedded-redis
implementation group: 'it.ozimov', name: 'embedded-redis', version: '0.7.2'
// QueryDSL
implementation 'com.querydsl:querydsl-jpa'
implementation 'com.querydsl:querydsl-core'
annotationProcessor("com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa") // querydsl JPAAnnotationProcessor ์ฌ์ฉ ์ง์
annotationProcessor("jakarta.persistence:jakarta.persistence-api") // java.lang.NoClassDefFoundError(javax.annotation.Entity) ๋ฐ์ ๋์
annotationProcessor("jakarta.annotation:jakarta.annotation-api") // java.lang.NoClassDefFoundError (javax.annotation.Generated) ๋ฐ์ ๋์
// Swagger
implementation group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
// ModelMapper
implementation group: 'org.modelmapper', name: 'modelmapper', version: '2.3.2'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.security:spring-security-test'
}
test {
outputs.dir snippetsDir
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
}
}