-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (83 loc) · 2.62 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
plugins {
id 'java'
id 'com.vaadin' version '24.6.2'
id 'org.cyclonedx.bom' version '2.0.0'
id 'com.gorylenko.gradle-git-properties' version '2.4.2'
id 'org.springframework.boot' version '3.4.1'
id 'io.spring.dependency-management' version '1.1.7'
id 'org.eclipse.jkube.kubernetes' version '1.18.0'
}
group = 'org.cftoolsuite'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2024.0.0")
set('vaadinVersion', "24.6.2")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation 'io.github.openfeign:feign-hc5:13.5'
implementation 'com.playtika.reactivefeign:feign-reactor-spring-cloud-starter:4.2.1'
implementation 'com.vaadin:vaadin-spring-boot-starter'
implementation 'org.apache.commons:commons-lang3'
implementation 'org.commonmark:commonmark:0.24.0'
implementation 'io.pivotal.cfenv:java-cfenv-all:3.3.0'
implementation 'org.springframework.cloud:spring-cloud-bindings:2.0.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
bootRun {
systemProperties System.properties
}
tasks.named('bootBuildImage') {
imageName = "docker.io/${project.group.contains('.') ? project.group.tokenize('.').last() : project.group}/${project.name}:${project.version}"
tags = [ "docker.io/${project.group.contains('.') ? project.group.tokenize('.').last() : project.group}/${project.name}:latest" ]
}
kubernetes {
buildStrategy = 'buildpacks'
generator {
config {
'spring-boot' {
color = 'always'
}
}
}
helm {
maintainers = [{
name = 'Chris Phillipson'
}]
}
}
tasks.register('setVersion') {
doLast {
def newVersion = project.hasProperty('newVersion') ? project.newVersion : version
ant.propertyfile(file: "gradle.properties") {
entry(key: "version", value: newVersion)
}
}
}
tasks.register('printArtifactPath') {
doLast {
println bootJar.archiveFile.get().asFile.absolutePath
}
}