From 5ed3c1b0f8492f9076bd0b80376458bd9a31f796 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 9 Jun 2021 11:14:37 +0200 Subject: [PATCH] Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 --- build.gradle.kts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2efbd54a98..fac245b258 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -233,10 +233,30 @@ tasks { copy { from(zipTree(downloadOmnisharpLinuxZipFile.get().dest)) into(file("$destinationDir/$pluginName/omnisharp/linux")) + exclude("run") } + // Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 + copy { + from(zipTree(downloadOmnisharpLinuxZipFile.get().dest)) + into(file("$destinationDir/$pluginName/omnisharp/linux")) + include("run") + filter { + it.replace("export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \${config_file}\"", "export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \\\"\${config_file}\\\"\"") + } + } + copy { + from(zipTree(downloadOmnisharpOsxZipFile.get().dest)) + into(file("$destinationDir/$pluginName/omnisharp/osx")) + exclude("run") + } + // Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 copy { from(zipTree(downloadOmnisharpOsxZipFile.get().dest)) into(file("$destinationDir/$pluginName/omnisharp/osx")) + include("run") + filter { + it.replace("export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \${config_file}\"", "export MONO_ENV_OPTIONS=\"--assembly-loader=strict --config \\\"\${config_file}\\\"\"") + } } copy { from(zipTree(downloadOmnisharpWindowsZipFile.get().dest)) @@ -310,7 +330,6 @@ tasks { } } - sonarqube { properties { property("sonar.projectName", "SonarLint for IntelliJ IDEA") @@ -366,3 +385,4 @@ signing { }) sign(configurations.archives.get()) } +