Core20 with gradle plugin

Hi there,

Does someone use gradle with core20? Core20 doesn’t support gradle plugin as core18 does. Should I add gradle in snapcraft file or there is another way to build with gradle for core20?

For example:

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

Hi,

I’m the author of this snap. Actually this is not a plugin but a snap. It’s meant to be used to build apps using gradle on your computer. It’s not meant to be used as a snapcraft plugin.

1 Like

Thanks @tunix for the insights