-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
69 lines (53 loc) · 1.57 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
67
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootJar
plugins {
id("org.jetbrains.kotlin.jvm")
id("org.jetbrains.kotlin.plugin.spring")
id("org.springframework.boot") apply false
id("io.spring.dependency-management") apply false
id("com.diffplug.spotless")
}
allprojects {
group = "com.getstrm"
version = rootProject.version
apply {
plugin("org.jetbrains.kotlin.jvm")
plugin("org.jetbrains.kotlin.plugin.spring")
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
plugin("com.diffplug.spotless")
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven("https://buf.build/gen/maven")
}
}
repositories {
mavenLocal()
mavenCentral()
maven("https://buf.build/gen/maven")
}
java.targetCompatibility = JavaVersion.VERSION_17
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<BootJar> {
enabled = false
}
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
// FIXME enable again!
isEnforceCheck = false
kotlin {
ktfmt().kotlinlangStyle() // kotlinlangStyle guarantees following the kotlin style guide
targetExclude("build/generated/**/*")
}
}
}
ext["postgresPort"] = if (ext.has("ciBuild")) 5432 else 5444