-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
127 lines (98 loc) · 3.31 KB
/
build.gradle
File metadata and controls
127 lines (98 loc) · 3.31 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.0'
id 'io.spring.dependency-management' version '1.1.0'
id "org.asciidoctor.jvm.convert" version "3.3.2"
}
apply plugin: 'java'
test {
testLogging.showStandardStreams = true
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
repositories {
mavenCentral()
}
configurations {
asciidoctorExt
}
dependencies {
// SpringBoot
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// Databases : H2 Database, MySQL Connector
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
// JUnit5
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
// Lombok
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
testCompileOnly 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
// AspectJ
implementation 'org.aspectj:aspectjweaver:1.9.19'
// Log4j2
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
// Hibernate Dependency for MySQL Point
implementation group: 'org.hibernate', name: 'hibernate-spatial', version: '6.2.2.Final'
// Spring REST Docs
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:3.0.0'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.0'
// Json
implementation 'org.json:json:20230618'
// Redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// Security
implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-test'
// XML Bind
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
implementation group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0.1'
implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.1'
// Apple Social Login
implementation group: 'com.nimbusds', name: 'nimbus-jose-jwt', version: '9.30.1'
implementation group: 'org.bouncycastle', name: 'bcpkix-jdk18on', version: '1.72'
// AWS S3
implementation group: 'software.amazon.awssdk', name: 's3', version: '2.20.103'
testImplementation group: 'software.amazon.awssdk', name: 's3', version: '2.20.103'
// WebSocket
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-websocket', version: '3.1.2'
}
ext {
snippetsDir = file('build/generated-snippets')
}
tasks.named('test') {
useJUnitPlatform()
}
test {
outputs.dir snippetsDir
}
asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}
task copyDocument(type: Copy) {
dependsOn asciidoctor
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}
build {
dependsOn copyDocument
}
jar {
enabled = false
}
bootJar {
dependsOn asciidoctor
from("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}