1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 17:00:12 +01:00
fdroidserver/buildserver/cookbooks/gradle/recipes/default.rb
2014-01-09 16:27:34 +01:00

23 lines
435 B
Ruby

user = node[:settings][:user]
script "add-gradle-dir" do
cwd "/tmp"
interpreter "bash"
code "mkdir -p /opt/gradle"
not_if "test -d /opt/gradle"
end
%w{1.4 1.6 1.7 1.8 1.9 1.10}.each do |ver|
script "install-gradle-#{ver}" do
cwd "/tmp"
interpreter "bash"
code "
unzip /vagrant/cache/gradle-#{ver}-bin.zip
mv gradle-#{ver} /opt/gradle/#{ver}
"
not_if "test -d /opt/gradle/#{ver}"
end
end