Skip to content

Commit e154522

Browse files
authored
Switch to new IntelliJ Platform plugin (#680)
1 parent 9548be5 commit e154522

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ lib/
77
build/
88
.DS_Store
99
local.properties
10+
.intellijPlatform

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ grammarKitComposer = { id = "app.cash.grammarkit-composer", version = "0.2.0" }
2626
spotless = { id = "com.diffplug.spotless", version = "7.0.3" }
2727
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.32.0" }
2828
dokka = { id = "org.jetbrains.dokka", version = "2.0.0" }
29-
intellij = { id = "org.jetbrains.intellij", version = "1.17.4" }
29+
intellij = { id = "org.jetbrains.intellij.platform", version = "2.0.0" }

sample-plugin/build.gradle

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@ plugins {
22
alias(libs.plugins.intellij)
33
}
44

5-
intellij {
6-
version.set("IC-${libs.versions.ideaVersion.get()}")
7-
}
8-
95
sourceSets {
106
main.java.srcDir "src/generated/kotlin"
117
}
128

9+
repositories {
10+
intellijPlatform {
11+
defaultRepositories()
12+
intellijDependencies()
13+
}
14+
}
15+
1316
dependencies {
1417
implementation projects.sampleCore
18+
19+
intellijPlatform {
20+
intellijIdeaCommunity('2023.1')
21+
instrumentationTools()
22+
}
1523
}
1624

1725
tasks.named('buildSearchableOptions') { enabled = false }

0 commit comments

Comments
 (0)