-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
176 lines (157 loc) · 5.51 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
buildscript {
ext {
springBootVersion = '3.0.2'
querydslPluginVersion = '1.0.10'
queryDslVersion = '5.0.0'
}
// plugin repository 설정
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:1.1.0"
classpath("gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:${querydslPluginVersion}")
}
}
// 하위 공통 모듈 적용
subprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'kuku'
version = '1.0-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
// 공통 사용 dependencies
dependencies {
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.data:spring-data-commons'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'
// AWS Secret Manager
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap:3.1.3'
implementation 'org.springframework.cloud:spring-cloud-starter-aws-secrets-manager-config:2.2.6.RELEASE'
implementation 'com.amazonaws.secretsmanager:aws-secretsmanager-jdbc:1.0.8'
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
}
// querydsl 설정
def queryDslProjects = [project(':kuku-common-database')]
configure(queryDslProjects) {
// Q class 생성 위치
def queryDslSrcDir = "$buildDir/generated/querydsl"
apply plugin: "com.ewerk.gradle.plugins.querydsl"
querydsl {
library = "com.querydsl:querydsl-apt"
jpa = true
querydslSourcesDir = queryDslSrcDir
}
// querydsl dependencies 추가
dependencies {
compile "com.querydsl:querydsl-jpa:${queryDslVersion}"
compile "com.querydsl:querydsl-apt:${queryDslVersion}"
compile "com.querydsl:querydsl-core:${queryDslVersion}"
}
// queryDsl compile 설정 바탕으로 시작
compileQuerydsl{
options.annotationProcessorPath = configurations.querydsl
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
}
//tasks.named('test') {
// outputs.dir snippetsDir
// useJUnitPlatform()
//}
//
//tasks.named('asciidoctor') {
// inputs.dir snippetsDir
// dependsOn test
//}
//plugins {
// id 'java'
// id 'org.springframework.boot' version '3.0.2'
// id 'io.spring.dependency-management' version '1.1.0'
// id 'org.asciidoctor.jvm.convert' version '3.3.2'
// // querydsl 5.0 이상 추가
// id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
//}
//
//group = 'kuku'
//version = '0.0.1-SNAPSHOT'
//sourceCompatibility = '17'
//
//configurations {
// compileOnly {
// extendsFrom annotationProcessor
// }
//}
//
//repositories {
// mavenCentral()
//}
//
//ext {
// set('snippetsDir', file("build/generated-snippets"))
// set('testcontainersVersion', "1.17.6")
//}
//
//dependencies {
// implementation 'org.springframework.boot:spring-boot-starter-amqp'
// implementation 'org.springframework.boot:spring-boot-starter-batch'
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
// implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
// implementation 'org.springframework.boot:spring-boot-starter-security'
// implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// implementation 'org.springframework.boot:spring-boot-starter-validation'
// implementation 'org.springframework.boot:spring-boot-starter-web'
// implementation 'org.flywaydb:flyway-core'
// implementation 'org.flywaydb:flyway-mysql'
// implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.0'
// implementation 'org.springframework.kafka:spring-kafka'
// implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
// compileOnly 'org.projectlombok:lombok'
// runtimeOnly 'com.h2database:h2'
// runtimeOnly 'com.mysql:mysql-connector-j'
// runtimeOnly 'org.postgresql:postgresql'
// annotationProcessor 'org.projectlombok:lombok'
// testImplementation 'org.springframework.boot:spring-boot-starter-test'
// testImplementation 'org.springframework.amqp:spring-rabbit-test'
// testImplementation 'org.springframework.batch:spring-batch-test'
// testImplementation 'org.springframework.kafka:spring-kafka-test'
// testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
// testImplementation 'org.springframework.security:spring-security-test'
// testImplementation 'org.testcontainers:junit-jupiter'
// testImplementation 'org.testcontainers:kafka'
// testImplementation 'org.testcontainers:mongodb'
// testImplementation 'org.testcontainers:mysql'
// testImplementation 'org.testcontainers:postgresql'
// testImplementation 'org.testcontainers:rabbitmq'
//}
//dependencyManagement {
// imports {
// mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
// }
//}