gradle.org (#2704)

* gradle.org

* single mv

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-07-31 01:36:43 +03:00 committed by GitHub
parent fe0330057a
commit c2122cd4d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1 @@
println "gradle works!"

View file

@ -0,0 +1,23 @@
distributable:
url: https://services.gradle.org/distributions/gradle-{{version}}-all.zip
strip-components: 1
versions:
url: https://services.gradle.org/distributions/
match: /gradle-\d+\.\d+\.\d+-all\.zip/
strip:
- /^gradle-/
- /-all\.zip/
dependencies:
openjdk.org: '*'
build:
working-directory: gradle-{{version}}
script:
- rm bin/*.bat
- mkdir -p {{prefix}}
- mv bin docs lib src {{prefix}}/
provides:
- bin/gradle
test:
script:
- gradle --version | grep {{version}}
- gradle build --no-daemon | grep "gradle works!"

View file