Skip to content

Commit

Permalink
Work around error building deb on Windows
Browse files Browse the repository at this point in the history
Relates to  elastic#47007 . the `gradle-ospackage-plugin` plugin doesn't
properly support symlink on windows.

This PR changes the way we configure tasks to prevent building these
packages as part of a windows check.
  • Loading branch information
alpar-t committed Sep 24, 2019
1 parent 9c266cd commit 286e097
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distribution/packages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ buildscript {
}
}
dependencies {
classpath 'com.netflix.nebula:gradle-ospackage-plugin:4.7.1'
classpath 'com.netflix.nebula:gradle-ospackage-plugin:7.4.2'
}
}

Expand Down Expand Up @@ -407,6 +407,9 @@ subprojects {
'default' buildDist
}

if (! (dpkgExists() || rpmExists())) {
return;
}
// sanity checks if packages can be extracted
final File extractionDir = new File(buildDir, 'extracted')
File packageExtractionDir
Expand All @@ -423,6 +426,7 @@ subprojects {
extractionDir.mkdirs()
}
}

check.dependsOn checkExtraction
if (project.name.contains('deb')) {
checkExtraction {
Expand Down

0 comments on commit 286e097

Please sign in to comment.