Skip to content

Commit 8451bbc

Browse files
authored
Upgrade intellij (#3)
1 parent 6eedcc7 commit 8451bbc

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Changelog
44
===============================================================================
5+
## 2021.3.0
6+
- upgrade intellij version
7+
58
## 2021.2.1
69
- upgrade to latest intellij idea
710

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

3+
34
plugins {
45
// Java support
56
id("java")
@@ -9,6 +10,8 @@ plugins {
910
id("org.jetbrains.intellij") version "1.1.6"
1011
}
1112

13+
14+
1215
group = "com.emberjs"
1316
version = "2021.2.1"
1417

@@ -27,7 +30,7 @@ intellij {
2730

2831
// see https://www.jetbrains.com/intellij-repository/releases/
2932
// and https://www.jetbrains.com/intellij-repository/snapshots/
30-
version.set("2021.2")
33+
version.set("2021.3")
3134
type.set("IU")
3235

3336
downloadSources.set(!System.getenv().containsKey("CI"))
@@ -37,7 +40,7 @@ intellij {
3740
// Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
3841
//
3942
// com.dmarcotte.handlebars: see https://plugins.jetbrains.com/plugin/6884-handlebars-mustache/versions
40-
plugins.set(listOf("JavaScriptLanguage", "CSS", "yaml", "com.dmarcotte.handlebars:212.4746.2"))
43+
plugins.set(listOf("JavaScriptLanguage", "CSS", "yaml", "com.dmarcotte.handlebars:213.5744.190"))
4144

4245
sandboxDir.set(project.rootDir.canonicalPath + "/.sandbox")
4346
}
@@ -55,4 +58,9 @@ tasks {
5558
publishPlugin {
5659
token.set(System.getenv("ORG_GRADLE_PROJECT_intellijPublishToken"))
5760
}
61+
5862
}
63+
64+
tasks.test {
65+
systemProperty("idea.force.use.core.classloader", "true")
66+
}

src/main/kotlin/com/emberjs/cli/EmberCliFrameworkDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class EmberCliFrameworkDetector : FrameworkDetector("Ember") {
3030

3131
override fun getFrameworkType(): FrameworkType = EmberFrameworkType
3232

33-
override fun detect(newFiles: MutableCollection<VirtualFile>, context: FrameworkDetectionContext): MutableList<out DetectedFrameworkDescription> {
33+
override fun detect(newFiles: MutableCollection<out VirtualFile>, context: FrameworkDetectionContext): MutableList<out DetectedFrameworkDescription> {
3434
val rootDir = newFiles.firstOrNull()?.parent
3535
if (rootDir != null && !isConfigured(newFiles, context.project)) {
3636
return mutableListOf(EmberFrameworkDescription(rootDir, newFiles))

src/main/kotlin/com/emberjs/cli/EmberCliProjectTemplatesFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.intellij.platform.ProjectTemplate
66
import com.intellij.platform.ProjectTemplatesFactory
77

88
class EmberCliProjectTemplatesFactory : ProjectTemplatesFactory() {
9-
override fun createTemplates(group: String?, context: WizardContext?): Array<ProjectTemplate> =
9+
override fun createTemplates(group: String?, context: WizardContext): Array<out ProjectTemplate> =
1010
arrayOf(EmberCliProjectGenerator(), EmberCliAddonProjectGenerator())
1111

1212
override fun getGroups(): Array<String> = arrayOf(WebModuleBuilder.GROUP_NAME)

0 commit comments

Comments
 (0)