/
build.gradle
70 lines (57 loc) · 1.96 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
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 plugin: 'com.google.cloud.tools.jib'
apply from: "../gradle/jib.gradle"
def javaAgentPort = 6302
def debugPort = 5122
def componentName = "discoverable-client"
setJib(componentName, javaAgentPort, debugPort)
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 {
gitPropertiesDir = new File("${project.rootDir}/${name}/build/resources/main/META-INF")
}
dependencies {
api project(':onboarding-enabler-spring')
api project(':zaas-client')
api project(':apiml-tomcat-common')
implementation libs.spring.boot.starter.security
implementation libs.spring.boot.starter.validation
implementation libs.spring.boot.starter.webflux
implementation libs.spring.boot.starter.websocket
implementation libs.spring.boot.starter.actuator
implementation libs.spring.doc
testImplementation libs.spring.boot.starter.test
compileOnly libs.lombok
annotationProcessor libs.lombok
}
bootJar.archiveFileName = bootJar.archiveBaseName.get() + ".jar"