From 377286536d4282c0f90bdc631c038d26d27ea3e9 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 527affe572..ace0dded9c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -236,10 +236,30 @@ tasks { copy { from(zipTree(downloadOmnisharpLinuxZipFile.get().dest)) into(file("$destinationDir/${pluginName.get()}/omnisharp/linux")) + exclude("run") } + // Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 + copy { + from(zipTree(downloadOmnisharpLinuxZipFile.get().dest)) + into(file("$destinationDir/${pluginName.get()}/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.get()}/omnisharp/osx")) + exclude("run") + } + // Workaround for https://github.com/OmniSharp/omnisharp-roslyn/pull/1979 copy { from(zipTree(downloadOmnisharpOsxZipFile.get().dest)) into(file("$destinationDir/${pluginName.get()}/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)) @@ -313,7 +333,6 @@ tasks { } } - sonarqube { properties { property("sonar.projectName", "SonarLint for IntelliJ IDEA") @@ -369,3 +388,4 @@ signing { }) sign(configurations.archives.get()) } +