Build: do not ship jdk when no-jdk option set (#3039)

When using package distribution

```
./gradlew :distribution:packages:no-jdk-deb:assemble
```

When `true` this include jdk switch the boolean to the correct value

fix https://github.com/opensearch-project/OpenSearch/issues/3024

Signed-off-by: Laurent Arnoud <laurent.arnoud@platform.sh>
This commit is contained in:
Laurent Arnoud 2022-04-29 19:28:34 +00:00 committed by GitHub
parent 017773c62d
commit 8a19ccc851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ tasks.register('buildDeb', Deb) {
} }
tasks.register('buildNoJdkDeb', Deb) { tasks.register('buildNoJdkDeb', Deb) {
configure(commonDebConfig(true, 'x64')) configure(commonDebConfig(false, 'x64'))
} }
Closure commonRpmConfig(boolean jdk, String architecture) { Closure commonRpmConfig(boolean jdk, String architecture) {