Skip to content

Conversation

@jasontedor
Copy link
Member

@jasontedor jasontedor commented Jan 8, 2018

This commit modifies the BWC build to invoke the Gradle wrapper. The motivation for this is two-fold:

  • BWC versions might be dependent on a different version of Gradle than the current version of Gradle
  • in a follow-up we are going to need to be able to set JAVA_HOME to a different value than the current value of JAVA_HOME

Relates #28065, #28071

This commit modifies the BWC build to invoke the Gradle wrapper. The
motivation for this is two-fold:
 - BWC versions might be dependent on a different version of Gradle than
   the current version of Gradle
 - in a follow-up we are going to need to be able to set JAVA_HOME to a
   different value than the current value of JAVA_HOME
@jasontedor jasontedor added :Delivery/Build Build or test infrastructure v7.0.0 v6.2.0 labels Jan 8, 2018
@jasontedor jasontedor requested a review from rjernst January 8, 2018 21:36
@jasontedor
Copy link
Member Author

in a follow-up we are going to need to be able to set JAVA_HOME to a different value than the current value of JAVA_HOME

The motivation here is in the change to require the JDK 9 compiler, we will continue to want to build 5.6 and 6.1 with the JDK 8 compiler so we need to push RUNTIME_JAVA_HOME to JAVA_HOME in those builds which we can only do if these tasks are Exec tasks where we can control the environment (this can not be done for a GradleBuild task).

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

File bwcRpm = file("${checkoutDir}/distribution/rpm/build/distributions/elasticsearch-${bwcVersion}.rpm")
File bwcZip = file("${checkoutDir}/distribution/zip/build/distributions/elasticsearch-${bwcVersion}.zip")
task buildBwcVersion(type: GradleBuild) {
task buildBwcVersion(type: Exec) { Exec exec ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you made this configuration a closure taking the task?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, that was leftover debugging. I removed this in a follow-up commit in this PR.

@jasontedor jasontedor merged commit a85772c into elastic:master Jan 9, 2018
jasontedor added a commit that referenced this pull request Jan 9, 2018
This commit modifies the BWC build to invoke the Gradle wrapper. The
motivation for this is two-fold:
 - BWC versions might be dependent on a different version of Gradle than
   the current version of Gradle
 - in a follow-up we are going to need to be able to set JAVA_HOME to a
   different value than the current value of JAVA_HOME

Relates #28138
ywelsch added a commit that referenced this pull request Jan 9, 2018
ywelsch added a commit that referenced this pull request Jan 9, 2018
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v6.2.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants