11import org.apache.commons.lang3.SystemUtils
22import org.jetbrains.changelog.markdownToHTML
3- import org.jetbrains.intellij.platform.gradle.TestFrameworkType
43import org.jetbrains.kotlin.gradle.dsl.JvmTarget
54import java.nio.file.Files
65
76plugins {
87 id(" java" )
9- id(" org.jetbrains.kotlin.jvm" ) version " 1.9.25 "
10- id(" org.jetbrains.intellij.platform" ) version " 2.5 .0"
8+ id(" org.jetbrains.kotlin.jvm" ) version " 2.1.21 "
9+ id(" org.jetbrains.intellij.platform" ) version " 2.6 .0"
1110 id(" org.jlleitschuh.gradle.ktlint" ) version " 12.2.0"
1211 id(" org.jetbrains.changelog" ) version " 2.2.1"
1312}
1413
15- idea {
16- module {
17- testResources.from(" src/test/testData" )
18- }
19- }
20-
2114repositories {
2215 mavenLocal()
2316 mavenCentral()
@@ -28,21 +21,18 @@ repositories {
2821}
2922
3023val lsp4ijVersion = property(" lsp4ijVersion" ) as String
31- val jUnitVersion = property(" jUnitVersion" ) as String
3224val mockkVersion = property(" mockkVersion" ) as String
3325
3426dependencies {
3527 intellijPlatform {
3628 intellijIdeaCommunity(property(" intelliJVersion" ) as String )
3729
3830 plugins(" com.redhat.devtools.lsp4ij:$lsp4ijVersion " )
39-
40- testFramework(TestFrameworkType .Platform )
4131 }
4232
4333 implementation(files(layout.buildDirectory.dir(" lsp" )))
4434
45- testImplementation(" junit:junit: $jUnitVersion " )
35+ testImplementation(kotlin( " test " ) )
4636 testImplementation(" io.mockk:mockk:$mockkVersion " )
4737}
4838
@@ -141,11 +131,11 @@ tasks {
141131 }
142132
143133 test {
144- useJUnit ()
134+ useJUnitPlatform ()
145135
146136 reports {
147137 junitXml.required = true
148- html.required = false
138+ html.required = true
149139 }
150140 }
151141
0 commit comments