-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
80 lines (67 loc) · 2.05 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
68
69
70
71
72
73
74
75
76
77
78
79
80
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
group = "com.github.monosoul"
plugins {
id("org.jetbrains.intellij.platform") version "2.1.0"
kotlin("jvm") version "1.9.25"
id("org.jetbrains.kotlinx.kover") version "0.8.3"
}
kotlin {
jvmToolchain(17)
compilerOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
intellijPlatform {
buildSearchableOptions = true
pluginConfiguration {
name = "Git extended update-index"
ideaVersion {
untilBuild.set(provider { null })
}
}
publishing {
token.set(
project.findProperty("intellij.publish.token") as String?
)
channels.set(listOf("stable"))
}
}
dependencies {
intellijPlatform {
create(type = "IC", version = "2024.1", useInstaller = false)
bundledPlugin("Git4Idea")
pluginVerifier()
instrumentationTools()
testFramework(TestFrameworkType.Platform)
}
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.platform:junit-platform-launcher")
testImplementation("io.strikt:strikt-jvm:0.35.1")
testImplementation("io.mockk:mockk:1.13.13")
testImplementation("org.apache.commons:commons-lang3:3.17.0")
}
tasks {
test {
useJUnitPlatform()
jvmArgs(
"--add-opens=java.base/java.lang=ALL-UNNAMED",
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens=java.base/java.io=ALL-UNNAMED",
)
testLogging {
events = setOf(PASSED, SKIPPED, FAILED)
exceptionFormat = FULL
}
}
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}