@@ -2,11 +2,12 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
22import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
33import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
44import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
5+ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
56
67group = " com.github.monosoul"
78
89plugins {
9- id(" org.jetbrains.intellij" ) version " 1.17.4 "
10+ id(" org.jetbrains.intellij.platform " ) version " 2.0.1 "
1011 kotlin(" jvm" ) version " 1.9.25"
1112 id(" org.jetbrains.kotlinx.kover" ) version " 0.8.3"
1213}
@@ -18,15 +19,33 @@ kotlin {
1819 }
1920}
2021
21- intellij {
22- version.set(" 223.7571.182" )
23- pluginName.set(" Git extended update-index" )
24- updateSinceUntilBuild.set(true )
25- sameSinceUntilBuild.set(false )
26- plugins.set(listOf (" vcs-git" ))
22+ intellijPlatform {
23+ pluginConfiguration {
24+ name = " Git extended update-index"
25+ ideaVersion {
26+ untilBuild = " "
27+ }
28+ }
29+
30+ publishing {
31+ token.set(
32+ project.findProperty(" intellij.publish.token" ) as String?
33+ )
34+ channels.set(listOf (" stable" ))
35+ }
2736}
2837
2938dependencies {
39+ intellijPlatform {
40+ create(" IC" , " 2022.3" )
41+ bundledPlugin(" Git4Idea" )
42+
43+ pluginVerifier()
44+ instrumentationTools()
45+
46+ testFramework(TestFrameworkType .Platform )
47+ }
48+
3049 testImplementation(platform(" org.junit:junit-bom:5.11.0" ))
3150 testImplementation(" org.junit.jupiter:junit-jupiter" )
3251 testImplementation(" org.junit.platform:junit-platform-launcher" )
@@ -36,17 +55,6 @@ dependencies {
3655}
3756
3857tasks {
39- publishPlugin {
40- token.set(
41- project.findProperty(" intellij.publish.token" ) as String?
42- )
43- channels.set(listOf (" stable" ))
44- }
45-
46- patchPluginXml {
47- untilBuild.set(" " )
48- }
49-
5058 test {
5159 useJUnitPlatform()
5260 jvmArgs(
@@ -64,4 +72,8 @@ tasks {
6472
6573repositories {
6674 mavenCentral()
75+
76+ intellijPlatform {
77+ defaultRepositories()
78+ }
6779}
0 commit comments