-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
85 lines (70 loc) · 2.71 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
plugins {
id 'org.springframework.boot' version '2.4.13'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.asciidoctor.convert' version '1.5.8'
id 'java'
}
group = 'com.jakduk'
version = '1.0.0'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('snippetsDir', file("build/generated-snippets"))
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
implementation('org.springframework.boot:spring-boot-starter-mail')
implementation('org.springframework.boot:spring-boot-starter-data-mongodb')
implementation('org.springframework.boot:spring-boot-starter-data-elasticsearch')
implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
implementation('org.springframework.boot:spring-boot-starter-amqp')
implementation('org.springframework.boot:spring-boot-starter-security')
implementation 'org.springframework.boot:spring-boot-starter-validation'
// etc libs
implementation 'commons-beanutils:commons-beanutils:1.9.4'
implementation 'org.apache.commons:commons-lang3'
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'org.apache.commons:commons-text:1.9'
implementation 'com.github.dfabulich:sitemapgen4j:1.1.2'
implementation 'com.rometools:rome:1.18.0'
implementation 'net.coobird:thumbnailator:0.4.17'
implementation 'org.jsoup:jsoup:1.14.3'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation 'org.springframework.amqp:spring-rabbit-test'
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation('org.springframework.security:spring-security-test')
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
}
test {
outputs.dir snippetsDir
useJUnitPlatform()
testLogging { exceptionFormat = 'full' }
}
asciidoctor {
inputs.dir snippetsDir
sourceDir 'src/main/asciidoc'
attributes 'snippets': file(snippetsDir)
dependsOn test
}
bootJar {
// gradle build 시 publishDocs 파라미터가 들어와야만 동작 함
if (project.hasProperty('publishDocs')) {
// build/asciidoc/html5 에 있는 documentation 을 jar file 로 package 하기 위함
from("${asciidoctor.outputDir}/html5") {
into 'public/docs'
}
}
launchScript()
}