-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
110 lines (89 loc) · 3.07 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.1'
id 'io.spring.dependency-management' version '1.1.0'
id "org.asciidoctor.jvm.convert" version "3.3.2"
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}
group = 'com.kite'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
// === Querydsl 빌드 옵션 (선택사항) ===
def querydslSrcDir = "$buildDir/generated/querydsl"
querydsl {
library = "com.querydsl:querydsl-apt:5.0.0"
jpa = true
querydslSourcesDir = querydslSrcDir
}
sourceSets { main { java { srcDirs = ["src/main/java", querydslSrcDir] } } }
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
asciidoctorExt
}
repositories {
mavenCentral()
}
dependencies {
implementation ('org.springframework.boot:spring-boot-starter-web'){
exclude module: 'spring-boot-starter-tomcat'
}
implementation 'org.springframework.boot:spring-boot-starter-undertow'
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation "org.springframework.boot:spring-boot-starter-webflux"
implementation 'org.flywaydb:flyway-core:9.10.2'
implementation 'org.flywaydb:flyway-mysql:9.10.2'
implementation 'org.yaml:snakeyaml:1.33'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta'
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.security:spring-security-test'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
}
def snippetsDir = "$buildDir/generated-snippets"
test {
outputs.dir snippetsDir
useJUnitPlatform()
/*testLogging {
// test jvm의 standard out and standard error을 console에 출력한다.
showStandardStreams = true
showCauses = true
showExceptions = true
showStackTraces = true
exceptionFormat = 'full'
}*/
}
asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}
bootJar {
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into "BOOT-INF/classes/static/docs"
}
}
jar {
enabled = false
}