Skip to content

Commit 8f671fe

Browse files
authored
build: update intellij plugin (#60)
1 parent 3a02464 commit 8f671fe

File tree

4 files changed

+36
-20
lines changed

4 files changed

+36
-20
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ out/
3838
target/
3939
*.iml
4040

41-
idea-logs-*
41+
idea-logs-*
42+
43+
.intellijPlatform

build.gradle.kts

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
22
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
33
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
44
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
5+
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
56

67
group = "com.github.monosoul"
78

89
plugins {
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

2938
dependencies {
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

3857
tasks {
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

6573
repositories {
6674
mavenCentral()
75+
76+
intellijPlatform {
77+
defaultRepositories()
78+
}
6779
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ pluginManagement {
66
gradlePluginPortal()
77
}
88
}
9+
10+
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" }

0 commit comments

Comments
 (0)