-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (65 loc) · 1.51 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
plugins {
id 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.hidetake.swagger.generator' version '2.18.1'
id 'com.palantir.docker' version '0.25.0'
id 'java'
}
group = 'org.openmbee'
version = '1.0.2'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation(
'org.springframework.boot:spring-boot-starter',
'org.springframework.boot:spring-boot-starter-web',
'org.springdoc:springdoc-openapi-ui:1.2.28',
'org.springdoc:springdoc-openapi-webmvc-core:1.2.28',
'org.springdoc:springdoc-openapi-common:1.2.28'
)
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
swaggerCodegen 'org.openapitools:openapi-generator-cli:4.2.2'
}
test {
useJUnitPlatform()
}
swaggerSources {
python {
inputFile = file('openapi/api-docs.yaml')
code {
language = 'python'
configFile = file('openapi/python-config.json')
}
}
java {
inputFile = file('openapi/api-docs.yaml')
code {
language = 'java'
configFile = file('openapi/java-config.json')
}
}
doc {
inputFile = file('openapi/api-docs.yaml')
code {
language = 'html2'
configFile = file('openapi/doc-config.json')
}
}
}
test {
exclude '**/*'
}
docker {
name 'mms-doc-convert:latest'
files tasks.jar.outputs.files.singleFile
dockerfile file('Dockerfile')
}
build.mustRunAfter 'clean'
task buildDocker {
dependsOn build
finalizedBy tasks.docker
}