-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (56 loc) · 1.58 KB
/
build.gradle.kts
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
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
import org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
val javaVersion: JavaVersion = JavaVersion.VERSION_17
val dependencyVersions = listOf<String>()
val dependencyGroupVersions = mapOf(
"ch.qos.logback" to libs.versions.logback.get(),
)
plugins {
id("org.siouan.frontend-jdk17") version "10.0.0" apply false
id("org.springframework.boot") version "3.4.2" apply false
id("io.spring.dependency-management") version "1.1.7" apply false
id("de.europace.docker-publish") version "2.0.14" apply false
}
subprojects {
project.apply(plugin = "java")
project.apply(plugin = "io.spring.dependency-management")
the<DependencyManagementExtension>().apply {
imports {
mavenBom(BOM_COORDINATES)
}
dependencies {
dependency("net.minidev:json-smart:2.5.2")
}
}
configurations {
all {
resolutionStrategy {
failOnVersionConflict()
force(dependencyVersions)
eachDependency {
val forcedVersion = dependencyGroupVersions[requested.group]
if (forcedVersion != null) {
useVersion(forcedVersion)
}
}
cacheDynamicVersionsFor(0, "seconds")
}
}
}
configure<JavaPluginExtension> {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
repositories {
mavenCentral()
}
tasks {
withType<Test> {
useJUnitPlatform()
testLogging.showStandardStreams = true
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
}
}