-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathbuild.gradle
More file actions
175 lines (144 loc) · 5.14 KB
/
Copy pathbuild.gradle
File metadata and controls
175 lines (144 loc) · 5.14 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
buildscript {
repositories mavenRepositories
dependencies {
classpath libs.spring.boot.gradle.plugin
classpath libs.jgit
}
}
plugins {
alias(libs.plugins.gradle.git.properties)
}
normalization {
runtimeClasspath {
ignore("**/*git.properties*")
ignore("**/*build-info.properties*")
}
}
apply plugin: 'org.springframework.boot'
apply from: "$projectDir/gradle/lite.gradle"
apply plugin: 'com.google.cloud.tools.jib'
apply from: "../gradle/jib.gradle"
def applicationPort = '10023'
def javaAgentPort = '6301'
def debugPort = '5120'
def componentName = "zaas-service"
setJib(componentName, javaAgentPort, debugPort, applicationPort)
jib.container.mainClass = 'org.zowe.apiml.zaas.ZaasApplication'
ext['netty.version'] = libs.versions.netty.get()
springBoot {
// This statement tells the Gradle Spring Boot plugin to generate a file
// build/resources/main/META-INF/build-info.properties that is picked up by Spring Boot to display
// via /info endpoint
buildInfo {
properties {
// Generate extra build info:
additional = [
by : System.properties['user.name'],
operatingSystem: "${System.properties['os.name']} (${System.properties['os.version']})",
number : System.getenv('BUILD_NUMBER') ? System.getenv('BUILD_NUMBER') : "n/a",
machine : InetAddress.localHost.hostName
]
}
}
}
gitProperties {
dotGitDirectory = project.rootProject.layout.projectDirectory.dir(".git")
gitPropertiesDir = new File("${project.rootDir}/${name}/build/resources/main/META-INF")
}
dependencies {
api project(':apiml-security-common')
api project(':apiml-tomcat-common')
api project(':apiml-extension-loader')
implementation libs.zowe.zos.utils
implementation libs.spring.boot.starter.webflux
implementation libs.spring.boot.starter.actuator
implementation libs.spring.boot.starter.web
implementation libs.spring.boot.starter.cache
implementation libs.spring.boot.starter.aop
implementation libs.spring.boot.starter.security
implementation libs.spring.cloud.starter.eureka.client
implementation libs.spring.retry
implementation libs.jackson.annotations
implementation libs.jackson.core
implementation libs.jackson.databind
implementation libs.jaxbApi
implementation libs.spring.cloud.commons
implementation libs.spring.doc
implementation libs.swagger3.parser
implementation libs.logback.classic
implementation libs.apache.commons.lang3
implementation libs.commons.io
implementation libs.spring.context
implementation libs.spring.context.support
implementation libs.spring.web
implementation libs.spring.webmvc
implementation libs.spring.webflux
implementation(libs.eh.cache) {
exclude group: "jakarta.xml.bind", module: "jakarta.xml.bind-api"
}
implementation libs.bundles.jaxb
implementation libs.guava
implementation libs.caffeine
implementation libs.nimbus.jose.jwt // Parsing
implementation libs.jose4j.jwt // Signing, with support for JCA with ICSF
compileOnly libs.lombok
annotationProcessor libs.lombok
annotationProcessor libs.spring.boot.configuration.processor
testImplementation libs.awaitility
testImplementation libs.mockito.core
testImplementation libs.spring.mock.mvc
testImplementation libs.spring.boot.starter.test
testImplementation libs.rest.assured
testImplementation libs.rest.assured.json.path
testImplementation libs.rest.assured.xml.path
testImplementation libs.jjwt
testImplementation libs.jjwt.impl
testImplementation libs.jjwt.jackson
testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
testImplementation(testFixtures(project(":apiml-common")))
testImplementation(testFixtures(project(":apiml-security-common")))
}
bootJar {
archiveFileName = "zaas-service.jar"
manifest {
attributes 'Main-Class': 'org.springframework.boot.loader.launch.PropertiesLauncher'
}
archiveClassifier = "application"
}
jar {
enabled true
archiveClassifier = ""
}
bootRun {
if (project.hasProperty('args')) {
args project.args.split(',')
}
jvmArgs([
'--add-opens=java.base/java.nio.channels.spi=ALL-UNNAMED',
'--add-opens=java.base/sun.nio.ch=ALL-UNNAMED',
'--add-opens=java.base/java.io=ALL-UNNAMED',
'--add-opens=java.base/java.util=ALL-UNNAMED',
'--add-opens=java.base/java.util.concurrent=ALL-UNNAMED',
'--add-opens=java.base/java.lang.invoke=ALL-UNNAMED',
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED',
'--add-opens=java.base/javax.net.ssl=ALL-UNNAMED',
'--add-opens=java.base/java.net=ALL-UNNAMED'
])
debugOptions {
port = 5023
suspend = false
server = true
}
workingDir = project.rootDir
systemProperties = System.properties
}
publishing {
publications {
mavenJavaFat(MavenPublication) {
groupId = 'org.zowe.apiml'
artifactId = 'zaas-fat-jar'
artifact bootJar
}
}
}