-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
61 lines (50 loc) · 1.48 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.spring.boot) apply false
alias(libs.plugins.spring.dependency.management)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.kapt) apply false
}
group = "org.railwaystations.rsapi"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
allprojects {
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict -java-parameters")
jvmTarget.set(JvmTarget.JVM_21)
}
}
tasks.register("compileAll") {
group = "other"
description = "Compiles all the modules."
dependsOn(subprojects.map { it.tasks.named("compileKotlin") })
}
tasks.withType<JavaCompile> {
sourceCompatibility = "21"
}
}
subprojects {
apply {
plugin(rootProject.project.libs.plugins.kotlin.jvm.get().pluginId)
plugin(rootProject.project.libs.plugins.spring.dependency.management.get().pluginId)
}
dependencyManagement {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
repositories {
mavenCentral()
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}
}
}