Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
olsh committed Apr 16, 2021
1 parent 1a5a4f8 commit ba8c01e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 1 addition & 8 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,7 @@ protected override void OnBuildInitialized()
.Requires(() => IsRiderHost)
.Executes(() =>
{
var gradleArguments = $"-PPluginVersion={ExtensionVersion} -PProductVersion={SdkVersion} -PDotNetOutputDirectory={OutputDirectory} -PDotNetProjectName={Project.Name}";
if (IsServerBuild)
{
// We should shutdown gradle daemon if the build runs on a build server
gradleArguments += " -Porg.gradle.daemon=false";
}
Gradle($"buildPlugin {gradleArguments}", customLogger:
Gradle($"buildPlugin -PPluginVersion={ExtensionVersion} -PProductVersion={SdkVersion} -PDotNetOutputDirectory={OutputDirectory} -PDotNetProjectName={Project.Name}", customLogger:
(_, s) =>
{
// Gradle writes warnings to stderr
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ ProductVersion=_PLACEHOLDER_
DotNetOutputDirectory=./src/ReSharper.Structured.Logging/bin/ReSharper.Structured.Logging.Rider/Debug
DotNetProjectName=ReSharper.Structured.Logging.Rider

# We need to disable Gradle daemon after build otherwise the build hangs on build server
# https://github.com/appveyor/ci/issues/1745
org.gradle.daemon=false

0 comments on commit ba8c01e

Please sign in to comment.