commit 598be5a6c1a967e0bb99a8de405d73be8ab463b5 Author: Georg Koppen gk@torproject.org Date: Tue Nov 24 10:40:02 2020 +0000
Bug 40140: Create own Gradle project
Gradle versions change more frequently compared to other toolchain parts. We don't want to rebuild the whole toolchain and subsequently all projects just because the Gradle version for one project has changed. We therefore start with creating an own, separate Gradle project where all the respective Gradle versions needed by different projects are fetched and prepared.
Gradle versions still present in `android-toolchain` will move over to this new project in later commits.
We start with Gradle 6.5 as that is used for `application-services` now. --- projects/gradle/build | 8 ++++++++ projects/gradle/config | 15 +++++++++++++++ 2 files changed, 23 insertions(+)
diff --git a/projects/gradle/build b/projects/gradle/build new file mode 100644 index 0000000..06ea3c6 --- /dev/null +++ b/projects/gradle/build @@ -0,0 +1,8 @@ +#!/bin/bash +[% c("var/set_default_env") -%] +unzip -qq [% c("input_files_by_name/gradle") %] +mv [% project %]-[% c("var/gradle_version") %] [% project %] +[% c('tar', { + tar_src => [ project ], + tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'), + }) %] diff --git a/projects/gradle/config b/projects/gradle/config new file mode 100644 index 0000000..fe995fb --- /dev/null +++ b/projects/gradle/config @@ -0,0 +1,15 @@ +# vim: filetype=yaml sw=2 +filename: '[% project %]-[% c("var/gradle_version") %].tar.gz' + +var: + container: + use_container: 1 + deps: + - unzip + gradle_version: 6.5 + +input_files: + - project: container-image + - URL: https://services.gradle.org/distributions/gradle-%5B% c("var/gradle_version") %]-bin.zip + name: gradle + sha256sum: 23e7d37e9bb4f8dabb8a3ea7fdee9dd0428b9b1a71d298aefd65b11dccea220f