1
1
plugins {
2
- id ' org.springframework.boot' version ' 2.7.1 '
2
+ id ' org.springframework.boot' version ' 2.6.9 '
3
3
id ' io.spring.dependency-management' version ' 1.0.11.RELEASE'
4
- id ' org.asciidoctor.convert' version ' 1.5.8 '
4
+ id ' org.asciidoctor.jvm. convert' version ' 3.3.2 '
5
5
id ' java'
6
6
}
7
7
@@ -10,9 +10,13 @@ version = '0.0.1-SNAPSHOT'
10
10
sourceCompatibility = ' 11'
11
11
12
12
configurations {
13
+ asciidoctorExtensions
13
14
compileOnly {
14
15
extendsFrom annotationProcessor
15
16
}
17
+ all {
18
+ exclude group : ' org.springframework.boot' , module : ' spring-boot-starter-logging'
19
+ }
16
20
}
17
21
18
22
repositories {
@@ -25,10 +29,13 @@ ext {
25
29
26
30
dependencies {
27
31
implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
32
+ implementation ' org.springframework.boot:spring-boot-starter-webflux'
33
+ implementation ' io.netty:netty-resolver-dns-native-macos:4.1.75.Final:osx-aarch_64'
28
34
implementation ' org.springframework.boot:spring-boot-starter-validation'
29
35
implementation ' org.springframework.boot:spring-boot-starter-web'
36
+ implementation ' org.flywaydb:flyway-core:6.4.2'
30
37
compileOnly ' org.projectlombok:lombok'
31
- runtimeOnly ' com.h2database:h2'
38
+ runtimeOnly ' com.h2database:h2:1.4.200 '
32
39
runtimeOnly ' mysql:mysql-connector-java'
33
40
annotationProcessor ' org.projectlombok:lombok'
34
41
testImplementation ' org.springframework.boot:spring-boot-starter-test'
@@ -37,6 +44,9 @@ dependencies {
37
44
implementation ' io.jsonwebtoken:jjwt-api:0.11.5'
38
45
runtimeOnly ' io.jsonwebtoken:jjwt-impl:0.11.5'
39
46
runtimeOnly ' io.jsonwebtoken:jjwt-jackson:0.11.5'
47
+ implementation ' org.springframework.boot:spring-boot-starter-log4j2'
48
+ implementation ' com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
49
+ asciidoctorExtensions ' org.springframework.restdocs:spring-restdocs-asciidoctor'
40
50
}
41
51
42
52
tasks. named(' test' ) {
@@ -45,6 +55,25 @@ tasks.named('test') {
45
55
}
46
56
47
57
tasks. named(' asciidoctor' ) {
58
+ configurations ' asciidoctorExtensions'
59
+ baseDirFollowsSourceFile()
48
60
inputs. dir snippetsDir
49
61
dependsOn test
50
62
}
63
+
64
+ asciidoctor. doFirst {
65
+ delete file(' src/main/resources/static/docs' )
66
+ }
67
+
68
+ task createDocument (type : Copy ) {
69
+ dependsOn asciidoctor
70
+ from file(" build/docs/asciidoc" )
71
+ into file(" src/main/resources/static" )
72
+ }
73
+
74
+ bootJar {
75
+ dependsOn createDocument
76
+ from(" ${ asciidoctor.outputDir} " ) {
77
+ into ' static/docs'
78
+ }
79
+ }
0 commit comments