Skip to content

Commit

Permalink
Fix bundling stub files & helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelote committed Aug 28, 2024
1 parent a870600 commit 54173b2
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ repositories {
}
}

val pluginName = "intellij-micropython"

plugins {
kotlin("jvm") version "1.9.25"
id("org.jetbrains.intellij.platform") version "2.0.1"
Expand Down Expand Up @@ -39,7 +41,7 @@ java {

intellijPlatform {
pluginConfiguration {
name = "intellij-micropython"
name = pluginName
}

instrumentCode = false
Expand All @@ -57,24 +59,11 @@ tasks {
apiVersion = KotlinVersion.KOTLIN_1_9
}
}
val copyStubs = register<Copy>("copyStubs") {
dependsOn("prepareSandbox")
from(projectDir) {
prepareSandbox {
from("$rootDir") {
into(pluginName)
include("typehints/")
include("scripts/")
}
into("${intellijPlatform.sandboxContainer.get()}/plugins/intellij-micropython")
}
buildSearchableOptions {
dependsOn(copyStubs)
}
buildPlugin {
dependsOn(copyStubs)
}
verifyPlugin {
dependsOn(copyStubs)
}
runIde {
dependsOn(copyStubs)
}
}

0 comments on commit 54173b2

Please sign in to comment.