mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
23 lines
840 B
Ruby
23 lines
840 B
Ruby
require 'package'
|
|
|
|
class Gradle < Package
|
|
description 'From mobile apps to microservices, from small startups to big enterprises, Gradle helps teams build, automate and deliver better software, faster.'
|
|
homepage 'https://gradle.org/'
|
|
version '8.11.1'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url "https://services.gradle.org/distributions/gradle-#{version}-bin.zip"
|
|
source_sha256 'f397b287023acdba1e9f6fc5ea72d22dd63669d59ed4a289a29b1a76eee151c6'
|
|
|
|
depends_on 'openjdk8' unless File.exist? "#{CREW_PREFIX}/bin/java"
|
|
|
|
no_compile_needed
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/gradle"
|
|
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/gradle"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/gradle/bin/gradle", "#{CREW_DEST_PREFIX}/bin"
|
|
end
|
|
end
|