-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (82 loc) · 2.18 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 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.6'
//id 'com.google.cloud.tools.jib' version '3.4.2'
id "org.sonarqube" version '5.1.0.4882'
//id 'org.cyclonedx.bom' version '1.10.0'
id 'java'
}
group = 'org.kerminator'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
sonarqube {
properties {
property "sonar.projectKey", "jahpola_spring-portti"
property "sonar.organization", "jahpola"
property "sonar.host.url", "https://sonarcloud.io"
}
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
/* jib {
from {
platforms {
platform {
architecture = 'amd64'
os = 'linux'
}
platform {
architecture = 'arm64'
os = 'linux'
}
}
}
to {
image = "public.ecr.aws/kerminator/spring-portti:latest"
credHelper {
helper = "ecr-login"
}
}
} */
tasks.named("bootBuildImage") {
imageName = "public.ecr.aws/kerminator/${project.name}"
//environment["BP_JVM_JLINK_ENABLED"] = "true"
environment["BP_JVM_VERSION"] = "21"
//environment["BP_JVM_CDS_ENABLED"] = "true"
//environment["BP_NATIVE_IMAGE"] = "true"
}
ext {
set('springCloudVersion', "2024.0.0")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-client-all'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation "io.micrometer:micrometer-tracing-bridge-otel"
implementation "io.opentelemetry:opentelemetry-exporter-otlp"
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
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}"
}
}
tasks.named("test") {
useJUnitPlatform()
}