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:
name: gradle
adopt-info: gradle
base: core20
grade: stable
confinement: classic
summary: An open-source build automation tool
license: Apache-2.0
description: |
Gradle is a build tool with a focus on build automation and support for
multi-language development. If you are building, testing, publishing, and
deploying software on any platform, Gradle offers a flexible model that can
support the entire development lifecycle from compiling and packaging code to
publishing web sites. Gradle has been designed to support build automation
across multiple languages and platforms including Java, Scala, Android, C/C++,
and Groovy, and is closely integrated with development tools and continuous
integration servers including Eclipse, IntelliJ, and Jenkins.
apps:
This file has been truncated. show original
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
tunix
March 18, 2021, 3:57pm
2
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