Skip to content

Commit 6b735fd

Browse files
authored
update intellij (#156)
1 parent b595a61 commit 6b735fd

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

build.gradle.kts

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,47 @@
1-
1+
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
2+
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
23
import java.net.URL
34

5+
// Configure project's dependencies
6+
repositories {
7+
mavenCentral()
8+
intellijPlatform {
9+
defaultRepositories()
10+
}
11+
}
412

513
plugins {
614
// Java support
715
id("java")
816
// Kotlin support
917
id("org.jetbrains.kotlin.jvm") version "1.9.24"
1018
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
11-
id("org.jetbrains.intellij") version "1.17.4"
19+
id("org.jetbrains.intellij.platform") version "2.0.0-beta7"
20+
// id("org.jetbrains.intellij.platform.migration") version "2.0.0-beta7"
1221
}
1322

1423

1524
group = "com.emberjs"
1625
version = "2023.4.2"
1726

18-
// Configure project's dependencies
19-
repositories {
20-
mavenCentral()
21-
}
2227
dependencies {
2328
testImplementation("org.jetbrains.kotlin:kotlin-test")
2429
testImplementation("org.assertj:assertj-core:3.26.0")
2530
testImplementation("org.junit.platform:junit-platform-launcher:1.10.2")
2631
implementation(kotlin("test"))
2732
implementation("org.codehaus.jettison:jettison:1.5.4")
33+
34+
// see https://www.jetbrains.com/intellij-repository/releases/
35+
// and https://www.jetbrains.com/intellij-repository/snapshots/
36+
intellijPlatform {
37+
plugins(listOf("com.dmarcotte.handlebars:242.16677.12"))
38+
bundledPlugins(listOf("JavaScript", "com.intellij.css", "org.jetbrains.plugins.yaml"))
39+
pluginVerifier()
40+
zipSigner()
41+
instrumentationTools()
42+
testFramework(TestFrameworkType.Platform)
43+
create(IntelliJPlatformType.IntellijIdeaUltimate, "242.16677.21")
44+
}
2845
}
2946

3047
java {
@@ -33,24 +50,15 @@ java {
3350

3451
// Configure gradle-intellij-plugin plugin.
3552
// Read more: https://github.com/JetBrains/gradle-intellij-plugin
36-
intellij {
37-
pluginName.set("EmberExperimental.js")
38-
39-
// see https://www.jetbrains.com/intellij-repository/releases/
40-
// and https://www.jetbrains.com/intellij-repository/snapshots/
41-
version.set("242.16677.21-EAP-SNAPSHOT")
42-
type.set("IU")
43-
44-
downloadSources.set(!System.getenv().containsKey("CI"))
45-
updateSinceUntilBuild.set(true)
53+
intellijPlatform {
54+
pluginConfiguration {
55+
name.set("EmberExperimental.js")
56+
}
4657

4758
// Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
4859
// Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
4960
//
5061
// com.dmarcotte.handlebars: see https://plugins.jetbrains.com/plugin/6884-handlebars-mustache/versions
51-
plugins.set(listOf("JavaScript", "com.intellij.css", "org.jetbrains.plugins.yaml", "com.dmarcotte.handlebars:242.16677.12"))
52-
53-
sandboxDir.set(project.rootDir.canonicalPath + "/.sandbox")
5462
}
5563

5664
tasks {

0 commit comments

Comments
 (0)