-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
57 lines (45 loc) · 1.35 KB
/
build.gradle.kts
File metadata and controls
57 lines (45 loc) · 1.35 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
plugins {
id("java")
kotlin("jvm") version "1.9.25"
id("org.jetbrains.intellij") version "1.17.4" // keep if you still build the plugin
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
// Kotlin runtime (fixes NoClassDefFoundError: kotlin/jvm/internal/Intrinsics)
implementation(kotlin("stdlib"))
// Parsing + symbol solving for Java
implementation("com.github.javaparser:javaparser-core:3.25.8")
implementation("com.github.javaparser:javaparser-symbol-solver-core:3.25.8")
// Git ops + JSON
implementation("org.eclipse.jgit:org.eclipse.jgit:6.9.0.202403050737-r")
implementation("org.json:json:20240303")
// Silence SLF4J binding warning at runtime
runtimeOnly("org.slf4j:slf4j-nop:2.0.13")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
}
application {
mainClass.set("mtspark.MainKt")
// Optional: keep things predictable
applicationDefaultJvmArgs = listOf("-Dfile.encoding=UTF-8")
}
intellij {
version.set("2024.1.7")
type.set("IC")
plugins.set(listOf("java"))
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.withType<Test> {
useJUnitPlatform()
}