buildserver: only install the latest gradle version

gradle checksums are now handled by gradlew-fdroid

refs #370 #517 #737
This commit is contained in:
Hans-Christoph Steiner 2021-03-04 11:33:45 +01:00
parent e6f5e68e02
commit 4b05854ffc
2 changed files with 5 additions and 126 deletions

View File

@ -10,14 +10,17 @@ vergte() {
test -e /opt/gradle/versions || mkdir -p /opt/gradle/versions
cd /opt/gradle/versions
for f in /vagrant/cache/gradle-*.zip; do
glob="/vagrant/cache/gradle-*.zip"
if compgen -G $glob; then # test if glob matches anything
f=$(ls -1 --sort=version --group-directories-first $glob | tail -1)
ver=`echo $f | sed 's,.*gradle-\([0-9][0-9.]*\).*\.zip,\1,'`
# only use versions greater or equal 2.2.1
if vergte $ver 2.2.1 && [ ! -d /opt/gradle/versions/${ver} ]; then
unzip -qq $f
mv gradle-${ver} /opt/gradle/versions/${ver}
fi
done
fi
chmod -R a+rX /opt/gradle

View File

@ -281,130 +281,6 @@ CACHE_FILES = [
'565af786dc0cc1941002174fb945122eabd080b222cd4c7c3d9a2ae0fabf5dc4'),
('https://dl.google.com/android/repository/build-tools_r30.0.3-linux.zip',
'24593500aa95d2f99fb4f10658aae7e65cb519be6cd33fa164f15f27f3c4a2d6'),
('https://services.gradle.org/distributions/gradle-2.2.1-bin.zip',
'420aa50738299327b611c10b8304b749e8d3a579407ee9e755b15921d95ff418'),
('https://services.gradle.org/distributions/gradle-2.3-bin.zip',
'010dd9f31849abc3d5644e282943b1c1c355f8e2635c5789833979ce590a3774'),
('https://services.gradle.org/distributions/gradle-2.4-bin.zip',
'c4eaecc621a81f567ded1aede4a5ddb281cc02a03a6a87c4f5502add8fc2f16f'),
('https://services.gradle.org/distributions/gradle-2.5-bin.zip',
'3f953e0cb14bb3f9ebbe11946e84071547bf5dfd575d90cfe9cc4e788da38555'),
('https://services.gradle.org/distributions/gradle-2.6-bin.zip',
'18a98c560af231dfa0d3f8e0802c20103ae986f12428bb0a6f5396e8f14e9c83'),
('https://services.gradle.org/distributions/gradle-2.7-bin.zip',
'cde43b90945b5304c43ee36e58aab4cc6fb3a3d5f9bd9449bb1709a68371cb06'),
('https://services.gradle.org/distributions/gradle-2.8-bin.zip',
'a88db9c2f104defdaa8011c58cf6cda6c114298ae3695ecfb8beb30da3a903cb'),
('https://services.gradle.org/distributions/gradle-2.9-bin.zip',
'c9159ec4362284c0a38d73237e224deae6139cbde0db4f0f44e1c7691dd3de2f'),
('https://services.gradle.org/distributions/gradle-2.10-bin.zip',
'66406247f745fc6f05ab382d3f8d3e120c339f34ef54b86f6dc5f6efc18fbb13'),
('https://services.gradle.org/distributions/gradle-2.11-bin.zip',
'8d7437082356c9fd6309a4479c8db307673965546daea445c6c72759cd6b1ed6'),
('https://services.gradle.org/distributions/gradle-2.12-bin.zip',
'e77064981906cd0476ff1e0de3e6fef747bd18e140960f1915cca8ff6c33ab5c'),
('https://services.gradle.org/distributions/gradle-2.13-bin.zip',
'0f665ec6a5a67865faf7ba0d825afb19c26705ea0597cec80dd191b0f2cbb664'),
('https://services.gradle.org/distributions/gradle-2.14-bin.zip',
'993b4f33b652c689e9721917d8e021cab6bbd3eae81b39ab2fd46fdb19a928d5'),
('https://services.gradle.org/distributions/gradle-2.14.1-bin.zip',
'cfc61eda71f2d12a572822644ce13d2919407595c2aec3e3566d2aab6f97ef39'),
('https://services.gradle.org/distributions/gradle-3.0-bin.zip',
'39c906941a474444afbddc38144ed44166825acb0a57b0551dddb04bbf157f80'),
('https://services.gradle.org/distributions/gradle-3.1-bin.zip',
'c7de3442432253525902f7e8d7eac8b5fd6ce1623f96d76916af6d0e383010fc'),
('https://services.gradle.org/distributions/gradle-3.2-bin.zip',
'5321b36837226dc0377047a328f12010f42c7bf88ee4a3b1cee0c11040082935'),
('https://services.gradle.org/distributions/gradle-3.2.1-bin.zip',
'9843a3654d3e57dce54db06d05f18b664b95c22bf90c6becccb61fc63ce60689'),
('https://services.gradle.org/distributions/gradle-3.3-bin.zip',
'c58650c278d8cf0696cab65108ae3c8d95eea9c1938e0eb8b997095d5ca9a292'),
('https://services.gradle.org/distributions/gradle-3.4-bin.zip',
'72d0cd4dcdd5e3be165eb7cd7bbd25cf8968baf400323d9ab1bba622c3f72205'),
('https://services.gradle.org/distributions/gradle-3.4.1-bin.zip',
'db1db193d479cc1202be843f17e4526660cfb0b21b57d62f3a87f88c878af9b2'),
('https://services.gradle.org/distributions/gradle-3.5-bin.zip',
'0b7450798c190ff76b9f9a3d02e18b33d94553f708ebc08ebe09bdf99111d110'),
('https://services.gradle.org/distributions/gradle-3.5.1-bin.zip',
'8dce35f52d4c7b4a4946df73aa2830e76ba7148850753d8b5e94c5dc325ceef8'),
('https://services.gradle.org/distributions/gradle-4.0-bin.zip',
'56bd2dde29ba2a93903c557da1745cafd72cdd8b6b0b83c05a40ed7896b79dfe'),
('https://services.gradle.org/distributions/gradle-4.0.1-bin.zip',
'd717e46200d1359893f891dab047fdab98784143ac76861b53c50dbd03b44fd4'),
('https://services.gradle.org/distributions/gradle-4.0.2-bin.zip',
'79ac421342bd11f6a4f404e0988baa9c1f5fabf07e3c6fa65b0c15c1c31dda22'),
('https://services.gradle.org/distributions/gradle-4.1-bin.zip',
'd55dfa9cfb5a3da86a1c9e75bb0b9507f9a8c8c100793ccec7beb6e259f9ed43'),
('https://services.gradle.org/distributions/gradle-4.2-bin.zip',
'515dd63d32e55a9c05667809c5e40a947529de3054444ad274b3b75af5582eae'),
('https://downloads.gradle.org/distributions/gradle-4.2.1-bin.zip',
'b551cc04f2ca51c78dd14edb060621f0e5439bdfafa6fd167032a09ac708fbc0'),
('https://downloads.gradle.org/distributions/gradle-4.3-bin.zip',
'8dcbf44eef92575b475dcb1ce12b5f19d38dc79e84c662670248dc8b8247654c'),
('https://downloads.gradle.org/distributions/gradle-4.3.1-bin.zip',
'15ebe098ce0392a2d06d252bff24143cc88c4e963346582c8d88814758d93ac7'),
('https://downloads.gradle.org/distributions/gradle-4.4-bin.zip',
'fa4873ae2c7f5e8c02ec6948ba95848cedced6134772a0169718eadcb39e0a2f'),
('https://downloads.gradle.org/distributions/gradle-4.4.1-bin.zip',
'e7cf7d1853dfc30c1c44f571d3919eeeedef002823b66b6a988d27e919686389'),
('https://downloads.gradle.org/distributions/gradle-4.5-bin.zip',
'03f2a43a314ff0fb843a85ef68078e06d181c4549c1e5fb983f289382b59b5e3'),
('https://downloads.gradle.org/distributions/gradle-4.5.1-bin.zip',
'3e2ea0d8b96605b7c528768f646e0975bd9822f06df1f04a64fd279b1a17805e'),
('https://downloads.gradle.org/distributions/gradle-4.6-bin.zip',
'98bd5fd2b30e070517e03c51cbb32beee3e2ee1a84003a5a5d748996d4b1b915'),
('https://downloads.gradle.org/distributions/gradle-4.7-bin.zip',
'fca5087dc8b50c64655c000989635664a73b11b9bd3703c7d6cabd31b7dcdb04'),
('https://downloads.gradle.org/distributions/gradle-4.8-bin.zip',
'f3e29692a8faa94eb0b02ebf36fa263a642b3ae8694ef806c45c345b8683f1ba'),
('https://downloads.gradle.org/distributions/gradle-4.8.1-bin.zip',
'af334d994b5e69e439ab55b5d2b7d086da5ea6763d78054f49f147b06370ed71'),
('https://downloads.gradle.org/distributions/gradle-4.9-bin.zip',
'e66e69dce8173dd2004b39ba93586a184628bc6c28461bc771d6835f7f9b0d28'),
('https://downloads.gradle.org/distributions/gradle-4.10-bin.zip',
'248cfd92104ce12c5431ddb8309cf713fe58de8e330c63176543320022f59f18'),
('https://downloads.gradle.org/distributions/gradle-4.10.1-bin.zip',
'e53ce3a01cf016b5d294eef20977ad4e3c13e761ac1e475f1ffad4c6141a92bd'),
('https://downloads.gradle.org/distributions/gradle-4.10.2-bin.zip',
'b49c6da1b2cb67a0caf6c7480630b51c70a11ca2016ff2f555eaeda863143a29'),
('https://downloads.gradle.org/distributions/gradle-4.10.3-bin.zip',
'8626cbf206b4e201ade7b87779090690447054bc93f052954c78480fa6ed186e'),
# Only add the latest point release of gradle to the default install.
# Other versions will be downloaded on demand.
('https://downloads.gradle.org/distributions/gradle-5.0-bin.zip',
'6157ac9f3410bc63644625b3b3e9e96c963afd7910ae0697792db57813ee79a6'),
('https://downloads.gradle.org/distributions/gradle-5.1.1-bin.zip',
'4953323605c5d7b89e97d0dc7779e275bccedefcdac090aec123375eae0cc798'),
('https://downloads.gradle.org/distributions/gradle-5.2.1-bin.zip',
'748c33ff8d216736723be4037085b8dc342c6a0f309081acf682c9803e407357'),
('https://downloads.gradle.org/distributions/gradle-5.3.1-bin.zip',
'1c59a17a054e9c82f0dd881871c9646e943ec4c71dd52ebc6137d17f82337436'),
('https://downloads.gradle.org/distributions/gradle-5.4.1-bin.zip',
'7bdbad1e4f54f13c8a78abc00c26d44dd8709d4aedb704d913fb1bb78ac025dc'),
('https://services.gradle.org/distributions/gradle-5.5.1-bin.zip',
'222a03fcf2fcaf3691767ce9549f78ebd4a77e73f9e23a396899fb70b420cd00'),
('https://services.gradle.org/distributions/gradle-5.6.4-bin.zip',
'1f3067073041bc44554d0efe5d402a33bc3d3c93cc39ab684f308586d732a80d'),
('https://services.gradle.org/distributions/gradle-6.0.1-bin.zip',
'd364b7098b9f2e58579a3603dc0a12a1991353ac58ed339316e6762b21efba44'),
('https://services.gradle.org/distributions/gradle-6.1.1-bin.zip',
'9d94e6e4a28ad328072ef6e56bce79a810494ae756751fdcedffdeaf27c093b1'),
('https://services.gradle.org/distributions/gradle-6.2.2-bin.zip',
'0f6ba231b986276d8221d7a870b4d98e0df76e6daf1f42e7c0baec5032fb7d17'),
('https://services.gradle.org/distributions/gradle-6.3-bin.zip',
'038794feef1f4745c6347107b6726279d1c824f3fc634b60f86ace1e9fbd1768'),
('https://services.gradle.org/distributions/gradle-6.4.1-bin.zip',
'e58cdff0cee6d9b422dcd08ebeb3177bc44eaa09bd9a2e838ff74c408fe1cbcd'),
('https://services.gradle.org/distributions/gradle-6.5.1-bin.zip',
'50a7d30529fa939721fe9268a0205142f3f2302bcac5fb45b27a3902e58db54a'),
('https://services.gradle.org/distributions/gradle-6.6.1-bin.zip',
'7873ed5287f47ca03549ab8dcb6dc877ac7f0e3d7b1eb12685161d10080910ac'),
('https://services.gradle.org/distributions/gradle-6.7.1-bin.zip',
'3239b5ed86c3838a37d983ac100573f64c1f3fd8e1eb6c89fa5f9529b5ec091d'),
('https://services.gradle.org/distributions/gradle-6.8-bin.zip',
'e2774e6fb77c43657decde25542dea710aafd78c4022d19b196e7e78d79d8c6c'),
('https://services.gradle.org/distributions/gradle-6.8.1-bin.zip',
'fd591a34af7385730970399f473afabdb8b28d57fd97d6625c388d090039d6fd'),
('https://services.gradle.org/distributions/gradle-6.8.2-bin.zip',
'8de6efc274ab52332a9c820366dd5cf5fc9d35ec7078fd70c8ec6913431ee610'),
('https://services.gradle.org/distributions/gradle-6.8.3-bin.zip',