mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
23 lines
830 B
Ruby
23 lines
830 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.5'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url 'https://services.gradle.org/distributions/gradle-8.5-bin.zip'
|
|
source_sha256 '9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026'
|
|
|
|
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
|