-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (71 loc) · 2.59 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
plugins {
id 'org.springframework.boot' version '3.4.3' apply false
id 'io.spring.dependency-management' version '1.1.7' apply false
id 'org.graalvm.buildtools.native' version '0.10.5' apply false
}
ext {
javaVersion = 21
springBootVersion = '3.4.3'
guavaVersion = '33.+'
}
configure(allprojects) { project ->
group "com.alex.plate"
repositories {
mavenLocal()
mavenCentral()
}
configurations.configureEach {
resolutionStrategy {
cacheChangingModulesFor 0, "minutes"
cacheDynamicVersionsFor 10, 'minutes'
}
}
}
configure(subprojects - project(":boot")) { project ->
apply plugin: "java"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
apply plugin: "org.graalvm.buildtools.native"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(javaVersion)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
}
}
tasks.named("bootBuildImage") {
createdDate = "now"
imageName = "localhost:5000/${rootProject.name}-${project.name}:latest"
environment = [
"BPE_DELIM_JAVA_TOOL_OPTIONS" : " ",
"BPE_APPEND_JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8 " +
"-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"
]
}
dependencies {
implementation("com.google.guava:guava:$guavaVersion")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-log4j2") {
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j2-impl'
}
modules {
module("org.springframework.boot:spring-boot-starter-logging") {
replacedBy("org.springframework.boot:spring-boot-starter-log4j2", "Use Log4j2 instead of Logback")
}
}
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}