Skip to content

Commit

Permalink
Merge #7527
Browse files Browse the repository at this point in the history
7527: Enable js module for 2021.2 builds r=avrong a=Undin

Previously, the corresponding module was excluded from 2021.2 builds because of JetBrains/intellij-platform-gradle-plugin#674 that was fixed in 1.1.3

changelog: Enable [Go to generated declaration](https://plugins.jetbrains.com/plugin/8182-rust/docs/wasm-projects-support.html#goto-wasm-bindgen) line marker in WASM projects for 2021.2 platform


Co-authored-by: Arseniy Pendryak <a.pendryak@yandex.ru>
  • Loading branch information
bors[bot] and Undin authored Jul 15, 2021
2 parents 91913b9 + eaa030d commit 7073dfa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
26 changes: 11 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ val compileNativeCodeTaskName = "compileNativeCode"
plugins {
idea
kotlin("jvm") version "1.5.20"
id("org.jetbrains.intellij") version "1.1.2"
id("org.jetbrains.intellij") version "1.1.3"
id("org.jetbrains.grammarkit") version "2021.1.3"
id("net.saliman.properties") version "1.5.1"
id("org.gradle.test-retry") version "1.2.0"
Expand Down Expand Up @@ -264,9 +264,7 @@ project(":plugin") {
implementation(project(":intelliLang"))
implementation(project(":duplicates"))
implementation(project(":grazie"))
if (platformVersion < 212) {
implementation(project(":js"))
}
implementation(project(":js"))
implementation(project(":ml-completion"))
}

Expand Down Expand Up @@ -515,17 +513,15 @@ project(":grazie") {
}
}

if (platformVersion < 212) {
project(":js") {
intellij {
plugins.set(listOf(javaScriptPlugin))
}
dependencies {
implementation(project(":"))
implementation(project(":common"))
testImplementation(project(":", "testOutput"))
testImplementation(project(":common", "testOutput"))
}
project(":js") {
intellij {
plugins.set(listOf(javaScriptPlugin))
}
dependencies {
implementation(project(":"))
implementation(project(":common"))
testImplementation(project(":", "testOutput"))
testImplementation(project(":common", "testOutput"))
}
}

Expand Down
7 changes: 1 addition & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@ include(
"intelliLang",
"duplicates",
"grazie",
"js",
"ml-completion",
"intellij-toml",
"intellij-toml:core"
)

val platformVersion: String by extra

if (platformVersion.toInt() < 212) {
include("js")
}

// Configure Gradle Build Cache. It is enabled in `gradle.properties` via `org.gradle.caching`.
// Also, `gradle clean` task is configured to delete `build-cache` directory.
buildCache {
Expand Down

0 comments on commit 7073dfa

Please sign in to comment.