From 7677c5f983c80d6ed15b2def55be832ec668d91f Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Wed, 21 Jul 2021 11:48:10 +0200 Subject: [PATCH] Add Sha256 header in elasticsearch RPMs This adds support for Sha256 header signature in our RPMs by updating the dependency to the readline library to a version we have patched until the provided PR (https://github.com/craigwblake/redline/pull/157) got merged and released by the redline folks. This work is related to #58257 --- distribution/packages/build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle index e9df565342d8b..c09f0b76e13cf 100644 --- a/distribution/packages/build.gradle +++ b/distribution/packages/build.gradle @@ -47,9 +47,23 @@ buildscript { mavenCentral() maven { url 'https://jitpack.io' } } + + // We rely on a patched version of the redline library used to build rpm packages + // to support sha256header in our elasticsearch RPMs + // TODO: Update / remove this dependency once https://github.com/craigwblake/redline/pull/157 got merged + // Be aware that it seems the redline project hasnt been active for a while + configurations.all { + resolutionStrategy { + dependencySubstitution { + substitute module('org.redline-rpm:redline') using module('com.github.breskeby:redline:caa0ede') + } + } + } + dependencies { classpath "com.github.breskeby:gradle-ospackage-plugin:98455c1" } + } apply plugin: "nebula.ospackage-base"