Skip to content

Add gradle task to build platform-specific distribution only #53682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dakrone opened this issue Mar 17, 2020 · 1 comment · Fixed by #56003
Closed

Add gradle task to build platform-specific distribution only #53682

dakrone opened this issue Mar 17, 2020 · 1 comment · Fixed by #56003
Assignees
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team

Comments

@dakrone
Copy link
Member

dakrone commented Mar 17, 2020

Currently we have three tasks to build platform-specific distributions:

./gradlew :distribution:archives:linux-tar:assemble --parallel
./gradlew :distribution:archives:darwin-tar:assemble --parallel
./gradlew :distribution:archives:windows-zip:assemble --parallel

Or the catch-all ./gradlew assemble.

It would be fantastic to have a single (simple!) task to build the platform specific distribution for whatever platform I am currently on.

So on Linux I'd run:

./gradlew buildit

And it would generate the .tar.gz file for me (the same as running the linux-tar assembly above)

@dakrone dakrone added the :Delivery/Build Build or test infrastructure label Mar 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@pugnascotia pugnascotia added the Team:Core/Infra Meta label for core/infra team label Apr 29, 2020
breskeby added a commit that referenced this issue Apr 30, 2020
This adds the gradle task ':assemblePlatformArchive' that depends on the
platform specific distro archive tasks and allows using the same task for
building only the archive according to the local platform.

This delegates to

   :distribution:archives:windows-zip:assemble on windows
   :distribution:archives:linux-tar:assemble on linux
   :distribution:archives:darwin-tar:assemble on osx

Closes #53682
@breskeby breskeby self-assigned this Apr 30, 2020
breskeby added a commit that referenced this issue May 7, 2020
This adds the gradle task ':assemblePlatformArchive' that depends on the
platform specific distro archive tasks and allows using the same task for
building only the archive according to the local platform.

This delegates to

   :distribution:archives:windows-zip:assemble on windows
   :distribution:archives:linux-tar:assemble on linux
   :distribution:archives:darwin-tar:assemble on osx

Closes #53682
breskeby added a commit that referenced this issue May 12, 2020
* Add gradle task 'localDistro' to build platform specific distro
* reuse distribution download plugin

Closes #53682
breskeby added a commit to breskeby/elasticsearch that referenced this issue May 12, 2020
* Add gradle task 'localDistro' to build platform specific distro
* reuse distribution download plugin

Closes elastic#53682
breskeby added a commit to breskeby/elasticsearch that referenced this issue May 12, 2020
* Add gradle task 'localDistro' to build platform specific distro
* reuse distribution download plugin

Closes elastic#53682
breskeby added a commit to breskeby/elasticsearch that referenced this issue May 12, 2020
* Add gradle task 'localDistro' to build platform specific distro
* reuse distribution download plugin

Closes elastic#53682
@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants