-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
63 lines (52 loc) · 1.37 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
import org.gradle.api.JavaVersion.VERSION_17
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
kotlin("jvm")
id("org.jetbrains.intellij")
idea
}
group = "org.http4k"
repositories {
mavenCentral()
}
dependencies {
implementation(platform(Http4k.bom))
implementation(platform("dev.forkhandles:forkhandles-bom:_"))
implementation(Http4k.core)
implementation(Http4k.cloudnative)
implementation(Http4k.format.jackson)
implementation(Http4k.format.jacksonYaml)
implementation(Http4k.multipart)
implementation("dev.forkhandles:values4k")
implementation("dev.forkhandles:result4k")
implementation("org.swinglabs:swingx:1.6.1")
}
tasks {
withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JVM_17)
}
}
java {
sourceCompatibility = VERSION_17
targetCompatibility = VERSION_17
}
withType<Test> {
useJUnitPlatform()
jvmArgs = listOf("--enable-preview")
}
publishPlugin {
token = System.getenv("JETBRAINS_TOKEN")
}
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
intellij {
version.set("2024.1.2")
plugins.set(listOf("gradle", "java", "org.jetbrains.kotlin"))
updateSinceUntilBuild.set(false)
}