Skip to content

Commit

Permalink
Upgraded gradle to 6.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tunix committed Mar 17, 2021
1 parent 1310a7f commit a2fe7e0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: gradle
base: core18
version: "6.8"
adopt-info: gradle

base: core20
grade: stable
confinement: classic

summary: An open-source build automation tool
license: Apache-2.0
description: |
Expand All @@ -13,9 +17,6 @@ description: |
and Groovy, and is closely integrated with development tools and continuous
integration servers including Eclipse, IntelliJ, and Jenkins.
grade: stable
confinement: classic

apps:
gradle:
command: opt/gradle/bin/gradle
Expand All @@ -38,7 +39,12 @@ parts:

gradle:
plugin: nil
source: https://services.gradle.org/distributions/gradle-6.8-bin.zip
source: https://services.gradle.org/distributions/gradle-6.8.3-bin.zip
override-build: |
version=$($SNAPCRAFT_PART_SRC/gradle-*/bin/gradle -v|awk '/Gradle/{print $2}')
snapcraftctl set-version $version
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/opt
mv $SNAPCRAFT_PART_BUILD/gradle-$SNAPCRAFT_PROJECT_VERSION $SNAPCRAFT_PART_INSTALL/opt/gradle
mv $SNAPCRAFT_PART_BUILD/gradle-* $SNAPCRAFT_PART_INSTALL/opt/gradle

0 comments on commit a2fe7e0

Please sign in to comment.