Skip to content

Commit 98c353a

Browse files
committed
Turbo87#527 - updated to new intellij version
1 parent 4c9f592 commit 98c353a

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

build.gradle.kts

+23-24
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
23

34
plugins {
45
// Java support
56
id("java")
67
// Kotlin support
7-
id("org.jetbrains.kotlin.jvm") version "1.9.25"
8+
id("org.jetbrains.kotlin.jvm") version "2.0.20"
89
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
9-
id("org.jetbrains.intellij") version "1.17.4"
10+
id("org.jetbrains.intellij.platform") version "2.0.1"
11+
// id("org.jetbrains.intellij.platform.migration") version "2.0.1"
1012
}
1113

1214
group = "com.emberjs"
@@ -15,32 +17,29 @@ version = "2024.1.1"
1517
// Configure project's dependencies
1618
repositories {
1719
mavenCentral()
20+
intellijPlatform {
21+
defaultRepositories()
22+
}
1823
}
1924
dependencies {
20-
implementation("org.codehaus.jettison:jettison:1.5.1")
21-
testImplementation("org.assertj:assertj-core:3.25.3")
25+
intellijPlatform {
26+
create("IU", "2024.2")
27+
plugins(listOf("com.dmarcotte.handlebars:242.20224.159"))
28+
bundledPlugins(listOf("JavaScript", "com.intellij.css", "org.jetbrains.plugins.yaml"))
29+
instrumentationTools()
30+
testFramework(TestFrameworkType.Platform)
31+
}
32+
testImplementation("org.jetbrains.kotlin:kotlin-test")
33+
testImplementation("org.assertj:assertj-core:3.26.3")
34+
testImplementation("org.junit.platform:junit-platform-launcher:1.11.0")
35+
implementation(kotlin("test"))
36+
implementation("org.codehaus.jettison:jettison:1.5.4")
2237
}
2338

24-
// Configure gradle-intellij-plugin plugin.
25-
// Read more: https://github.com/JetBrains/gradle-intellij-plugin
26-
intellij {
27-
pluginName.set("Ember.js")
28-
29-
// see https://www.jetbrains.com/intellij-repository/releases/
30-
// and https://www.jetbrains.com/intellij-repository/snapshots/
31-
version.set("2024.2")
32-
type.set("IU")
33-
34-
downloadSources.set(!System.getenv().containsKey("CI"))
35-
updateSinceUntilBuild.set(true)
36-
37-
// Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
38-
// Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
39-
//
40-
// com.dmarcotte.handlebars: see https://plugins.jetbrains.com/plugin/6884-handlebars-mustache/versions
41-
plugins.set(listOf("JavaScript", "com.intellij.css", "yaml", "com.dmarcotte.handlebars:242.20224.159"))
42-
43-
sandboxDir.set(project.rootDir.canonicalPath + "/.sandbox")
39+
intellijPlatform {
40+
pluginConfiguration {
41+
name.set("Ember.js")
42+
}
4443
}
4544

4645
tasks {

0 commit comments

Comments
 (0)