1
-
1
+ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
2
+ import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
2
3
import java.net.URL
3
4
5
+ // Configure project's dependencies
6
+ repositories {
7
+ mavenCentral()
8
+ intellijPlatform {
9
+ defaultRepositories()
10
+ }
11
+ }
4
12
5
13
plugins {
6
14
// Java support
7
15
id(" java" )
8
16
// Kotlin support
9
17
id(" org.jetbrains.kotlin.jvm" ) version " 1.9.24"
10
18
// 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"
12
21
}
13
22
14
23
15
24
group = " com.emberjs"
16
25
version = " 2023.4.2"
17
26
18
- // Configure project's dependencies
19
- repositories {
20
- mavenCentral()
21
- }
22
27
dependencies {
23
28
testImplementation(" org.jetbrains.kotlin:kotlin-test" )
24
29
testImplementation(" org.assertj:assertj-core:3.26.0" )
25
30
testImplementation(" org.junit.platform:junit-platform-launcher:1.10.2" )
26
31
implementation(kotlin(" test" ))
27
32
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
+ }
28
45
}
29
46
30
47
java {
@@ -33,24 +50,15 @@ java {
33
50
34
51
// Configure gradle-intellij-plugin plugin.
35
52
// 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
+ }
46
57
47
58
// Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
48
59
// Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
49
60
//
50
61
// 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" )
54
62
}
55
63
56
64
tasks {
0 commit comments