-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
122 lines (95 loc) · 3.79 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
111
112
113
114
115
116
117
118
119
120
121
122
plugins {
id 'org.springframework.boot' version '2.6.12'
id 'io.spring.dependency-management' version '1.0.14.RELEASE'
id 'java'
id "org.asciidoctor.convert" version "1.5.9.2"
}
group = 'scanner'
version = '2.0.0'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.cloud:spring-cloud-dependencies:2022.0.1'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:3.1.5'
implementation group: 'io.github.openfeign', name: 'feign-gson', version: '11.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.restdocs:spring-restdocs-webtestclient'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// https://mvnrepository.com/artifact/io.jsonwebtoken
implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
implementation 'io.jsonwebtoken:jjwt-gson:0.11.5'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
// https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api
// 2.3.2 -> 4.0.0
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
// https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation 'commons-io:commons-io:2.11.0'
implementation 'commons-codec:commons-codec:1.14'
implementation 'org.apache.commons:commons-compress:1.21'
implementation 'org.mapstruct:mapstruct-processor:1.5.3.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final'
implementation 'org.mariadb.jdbc:mariadb-java-client:3.0.8'
runtimeOnly 'mysql:mysql-connector-java'
// https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api
implementation 'javax.xml.bind:jaxb-api:2.3.1'
// https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter
implementation 'io.springfox:springfox-boot-starter:3.0.0'
// https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// https://mvnrepository.com/artifact/org.junit.jupiter
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
ext {
set('snippetsDir', file("build/generated-snippets"))
set('springCloudVersion', "2021.0.1")
}
test {
useJUnitPlatform()
outputs.dir snippetsDir
}
asciidoctor {
attributes 'snippets': snippetsDir
inputs.dir snippetsDir
dependsOn test
}
bootJar {
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
archivesBaseName = 'scanner'
archiveFileName = 'scanner-2.0.0.jar'
archiveVersion = '2.0.0'
}
task copyDocument(type: Copy) {
dependsOn bootJar
from file("build/asciidoc/html5/")
into file("src/main/resources/static/docs")
}
build {
dependsOn copyDocument
}