-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
63 lines (51 loc) · 1.23 KB
/
build.gradle.kts
File metadata and controls
63 lines (51 loc) · 1.23 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.2.0"
id("org.jetbrains.intellij.platform") version "2.7.0"
}
group = "engineering.cute"
version = "0.1.3"
kotlin {
jvmToolchain(21)
}
java {
toolchain {
languageVersion.set(org.gradle.jvm.toolchain.JavaLanguageVersion.of(21))
}
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
implementation("org.json:json:20240303")
testImplementation(kotlin("test"))
intellijPlatform {
clion("2025.3")
bundledPlugin("com.intellij.clion")
bundledPlugin("org.jetbrains.plugins.terminal")
}
}
intellijPlatform {
buildSearchableOptions = false
pluginConfiguration {
ideaVersion {
sinceBuild = "253"
untilBuild = provider { null }
}
}
}
tasks {
withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
freeCompilerArgs.add("-Xjvm-default=all")
}
}
withType<org.gradle.api.tasks.compile.JavaCompile>().configureEach {
options.release.set(17)
}
}