-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
104 lines (95 loc) · 3.19 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
buildscript {
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
}
repositories {
mavenCentral()
gradlePluginPortal()
maven { url 'https://repo.spring.io/plugins-release' }
}
}
plugins {
id 'org.hidetake.swagger.generator' version '2.18.2'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
repositories {
mavenLocal()
mavenCentral()
}
ext['elasticsearch.version'] = '7.8.1'
dependencies {
implementation (
"org.openmbee.mms:authenticator:${mmsVersion}",
"org.openmbee.mms:localuser:${mmsVersion}",
"org.openmbee.mms:ldap:${mmsVersion}",
"org.openmbee.mms:crud:${mmsVersion}",
"org.openmbee.mms:cameo:${mmsVersion}",
"org.openmbee.mms:elastic:${mmsVersion}",
"org.openmbee.mms:jupyter:${mmsVersion}",
"org.openmbee.mms:permissions:${mmsVersion}",
"org.openmbee.mms:webhooks:${mmsVersion}",
"org.openmbee.mms:search:${mmsVersion}",
"org.openmbee.mms:storage:${mmsVersion}",
"org.openmbee.mms:groups:${mmsVersion}",
"org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-actuator",
"org.postgresql:postgresql:42.2.27",
"org.zalando:logbook-spring-boot-starter:2.2.1",
"ch.qos.logback:logback-classic:1.2.11",
'org.springdoc:springdoc-openapi-ui:1.6.9',
"org.springdoc:springdoc-openapi-webmvc-core:1.6.9",
"org.springdoc:springdoc-openapi-security:1.6.9",
//resolve https://nvd.nist.gov/vuln/detail/CVE-2022-1471
"org.yaml:snakeyaml:2.0",
"org.apache.lucene:lucene-core:8.10.0",
"com.fasterxml.jackson.core:jackson-core:2.15.0",
)
testImplementation(
'org.springframework.boot:spring-boot-starter-test'
)
swaggerCodegen 'org.openapitools:openapi-generator-cli:5.0.1'
}
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')
}
}
}
springBoot {
buildInfo()
}
bootJar {
layered {
enabled = true
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
//https://stackoverflow.com/questions/61197984/bootjar-mavenjar-artifact-wasnt-produced-by-this-build
configurations {
[apiElements, runtimeElements].each {
it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) }
it.outgoing.artifact(bootJar)
}
}