-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (71 loc) · 2.7 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
plugins {
id 'org.springframework.boot' version '2.5.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'java'
}
group = 'com.udhd'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
asciidoctorExt
jsondoclet
}
repositories {
mavenCentral()
}
ext {
set('snippetsDir', file("build/generated-snippets"))
javadocJsonDir = file("build/generated-javadoc-json")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.1.RELEASE'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'dev.brachtendorf:JImageHash:1.0.0'
implementation 'org.mapstruct:mapstruct:1.4.2.Final'
implementation 'junit:junit:4.13.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.security:spring-security-test'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'com.auth0:java-jwt:3.17.0'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
implementation 'capital.scalable:spring-auto-restdocs-core:2.0.11'
jsondoclet "capital.scalable:spring-auto-restdocs-json-doclet-jdk9:2.0.11"
testImplementation 'org.mockito:mockito-inline:3.11.1'
}
task jsonDoclet(type: Javadoc, dependsOn: compileJava) {
source = sourceSets.main.allJava
classpath = sourceSets.main.compileClasspath
destinationDir = javadocJsonDir
options.docletpath = configurations.jsondoclet.files.asType(List)
options.doclet = 'capital.scalable.restdocs.jsondoclet.ExtractDocumentationAsJsonDoclet'
options.memberLevel = JavadocMemberLevel.PACKAGE
}
test {
outputs.dir snippetsDir
systemProperty 'org.springframework.restdocs.javadocJsonDir', javadocJsonDir
useJUnitPlatform()
dependsOn jsonDoclet
}
asciidoctor {
configurations 'asciidoctorExt'
inputs.dir snippetsDir
dependsOn test
}
bootJar {
dependsOn asciidoctor
from("${asciidoctor.outputDir}") {
into 'BOOT-INF/classes/static/docs'
}
}