1
1
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
2
3
3
4
plugins {
4
5
// Java support
5
6
id(" java" )
6
7
// Kotlin support
7
- id(" org.jetbrains.kotlin.jvm" ) version " 1.9.25 "
8
+ id(" org.jetbrains.kotlin.jvm" ) version " 2.0.20 "
8
9
// 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"
10
12
}
11
13
12
14
group = " com.emberjs"
@@ -15,32 +17,29 @@ version = "2024.1.1"
15
17
// Configure project's dependencies
16
18
repositories {
17
19
mavenCentral()
20
+ intellijPlatform {
21
+ defaultRepositories()
22
+ }
18
23
}
19
24
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" )
22
37
}
23
38
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
+ }
44
43
}
45
44
46
45
tasks {
0 commit comments