Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make runIde task work for local development #74

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mps-diff-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ tasks {
}

runIde {
systemProperty("idea.platform.prefix", "Idea")
autoReloadPlugins.set(true)
}

Expand Down
1 change: 1 addition & 0 deletions mps-generator-execution-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ tasks {
}

runIde {
systemProperty("idea.platform.prefix", "Idea")
autoReloadPlugins.set(true)
}

Expand Down
1 change: 1 addition & 0 deletions mps-legacy-sync-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ tasks {
}

runIde {
systemProperty("idea.platform.prefix", "Idea")
autoReloadPlugins.set(true)
}

Expand Down
6 changes: 5 additions & 1 deletion mps-sync-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ val mpsVersion = project.findProperty("mps.version")?.toString().takeIf { !it.is
if (!mpsToIdeaMap.containsKey(mpsVersion)) {
throw GradleException("Build for the given MPS version '$mpsVersion' is not supported.")
}
val mpsHome = rootProject.layout.buildDirectory.dir("mps-$mpsVersion")
// identify the corresponding intelliJ platform version used by the MPS version
val ideaVersion = mpsToIdeaMap.getValue(mpsVersion)
println("Building for MPS version $mpsVersion and IntelliJ version $ideaVersion")
Expand All @@ -45,7 +46,9 @@ dependencies {
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set(ideaVersion)
localPath = mpsHome.map { it.asFile.absolutePath }
instrumentCode = false
plugins = listOf("jetbrains.mps.ide.make")
}

tasks {
Expand Down Expand Up @@ -76,6 +79,7 @@ tasks {
}

runIde {
systemProperty("idea.platform.prefix", "Idea")
autoReloadPlugins.set(true)
}

Expand Down
Loading