Skip to content

Commit

Permalink
Merge branch 'release/2.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-a committed Aug 24, 2021
2 parents 11c08b8 + 3e64107 commit 2b19ce9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/rider/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import io.gitlab.arturbosch.detekt.Detekt
import org.gradle.internal.os.OperatingSystem
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.tasks.PrepareSandboxTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

fun properties(key: String) = project.findProperty(key).toString()
Expand Down Expand Up @@ -233,22 +232,25 @@ tasks {
}

// add the dotnet component to the sandbox that will be used to create the final plugin-zip
getByName<PrepareSandboxTask>("prepareSandbox") {
prepareSandbox {
dependsOn.add("buildDotNet")
val pluginName = intellij.pluginName.get()

// copy projectTemplates
logger.info("Adding projectTemplates to sandbox")
val projectTemplates = File(rootDir, "../projectTemplates")
into(
"${intellij.pluginName}/projectTemplates"
"$pluginName/projectTemplates"
) {
from(projectTemplates)
}

// copy dotnet component
logger.info("Adding .NET component to sandbox")
val dotNetConfiguration = properties("dotNetConfiguration")
val dotNetOutput = File(rootDir, "../dotnet/$pluginName/bin/$dotNetConfiguration")
into(
"${intellij.pluginName}/dotnet"
"$pluginName/dotnet"
) {
from(dotNetOutput) {
include("$pluginName.*")
Expand Down

0 comments on commit 2b19ce9

Please sign in to comment.