-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (56 loc) · 1.9 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
plugins {
id "java-library"
id "maven-publish"
id "signing"
id "org.springframework.boot" version "${spring_boot_version}"
id "org.graalvm.buildtools.native" version "${graalvm_buildtools_native_version}"
}
group = 'io.github.waileong'
version = '1.0.2'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
tasks.named("bootBuildImage") {
imageName = "waileong/${project.name}:${version}"
environment = [
"BP_JVM_VERSION": "21"
]
}
springBoot {
buildInfo()
}
dependencies {
implementation "io.github.waileong:spring-boot-fcm:$spring_boot_fcm_version"
// Spring Boot BOM for dependency management
implementation platform("org.springframework.boot:spring-boot-dependencies:$spring_boot_version")
// Spring Boot starters
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
// swagger
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springdoc_version")
implementation("io.swagger.core.v3:swagger-annotations:$io_swagger_v3_version")
// Annotation processor
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:$spring_boot_version")
// Testing dependencies
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core")
}
// Java compile options
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.deprecation = true
options.compilerArgs.add("-parameters")
}
test {
useJUnitPlatform()
}