Questions tagged [gradle-release-plugin]

This refers to a release plugin of the build tool gradle.

The gradle release plugin manages the process of

  • ensuring a clean state of the working copy
  • setting the version to a non snapshot version
  • building the artifacts (through other tasks the release tasks depends on)
  • tagging this version in the version control system
  • increasing the version after the release
55 questions
1
vote
1 answer

Android Install error with release unsigned apk

I try to install an application on release build type and I get the generic error: "Parse error. There was a problem while parsing the package" Installing the debug apk works successfully. Installing release apk with adb shows this…
1
vote
1 answer

Gradle uploadArchives artifacts namespace when depending on a plugin

I have a Android app building with Gradle. I am using the gradle-release plugin to create automatic releases, and then the uploadArchives task from Gradle to upload the generated .apk to a Maven repo (Nexus). I have to add the archives to upload…
1
vote
1 answer

How to reference system ProGuard binary in build.gradle?

I noticed that running gradle assembleRelease calls upon an outdated ProGuard version as can be seen from the shell output: $ gradle assembleRelease Relying on packaging to define the extension of the main artifact has been \ deprecated and is…
JJD
  • 50,076
  • 60
  • 203
  • 339
0
votes
0 answers

Gradle release and publish not working - always showing UP-TO-DATE

I'm trying to set up two projects with Gradle to perform releases and publish the results to a Nexus repository server. Both are failing with a similar problem - the release step is working, and the "SNAPSHOT" version is replaced by the released…
Hedley
  • 1,060
  • 10
  • 24
0
votes
1 answer

Gradle release plugin which modify version in gradle.properties can support Jfrog artifactory publish with release version

All steps required are below. remove '-SNAP' suffix from the version and commit to git repo create new git tag on this commit Artifactory Deploy on Jfrog with release version not with -SNAP version bump version in build.gradle (like pom.xml), and…
Anuj Kumar
  • 514
  • 1
  • 4
  • 8
0
votes
0 answers

Splitting gradle release tasks

In my jenkins pipeline, I want to split gradle release tasks in two separates stages, such way like this : Part 1 : gradle release : all tasks except updateVersion, commitNewVersion Other processing Part 2 : gradle release:updateVersion,…
Maro
  • 1
  • 1
0
votes
0 answers

How to create a release tag when main branch is deployed via Jenkins?

We have a SpringBoot project which uses Gradle. We want to create a tag whenever the main branch is deployed using Jenkins. We searched and found gradle-release plugin which facilitates this. But while using this it's failing saying Failed to run…
poly_glot
  • 21
  • 5
0
votes
0 answers

How to skip tests in release part of build

We are currently using gradle-release-plugin. Our release builds are twice as long due to unit and integration tests being run on both "SNAPSHOT" version and after the branch is "tagged". here is the command line we execute in our release…
0
votes
0 answers

Release plugin only produces SNAPSHOT jars

I am trying to release a project/module using the net researchgate release plugin, and I can't seem to get it to work. Here's my build.gradle plugins { id 'application' id 'java' id 'org.springframework.boot' version '2.7.2' id…
D. Joe
  • 573
  • 1
  • 9
  • 17
0
votes
0 answers

Gradle release plugin compatible with kotlin DSL

I'm trying to find a gradle release plugin for my kotlin spring project but all the plugins I found on out there, are quite old and not maintained for a while so they don't really work with Kotlin DSL. I used the axion one, it worked somehow but it…
user2137817
  • 1,825
  • 5
  • 28
  • 45
0
votes
1 answer

Auto increment minor or patch version depending on the branch

I'm using the gradle-release-plugin in Bamboo, with the option useAutomaticVersion=true, to add a git tag and then auto increment version number. The default behavior of the gradle-release-plugin is to increment the patch version (2.0.3 -> 2.0.4). I…
0
votes
1 answer

Can gradle-release-plugin be configured to use SemVer?

I have a Spring-Boot Gradle 4.10.3 project which is currently working fine. It uses gradle-release plugin for releases and version management. However, I now have a new requirement that the artifacts generated for this project adhere to SemVer…
JCN
  • 509
  • 1
  • 11
  • 25
0
votes
1 answer

Pass tagTemplate as command line argument - Gradle Release Plugin

I have to create builds depending on environment and tag/push to nexus. Currently, I have tagTemplate = 'release-${version}' in my release settings. The first part of the tagTemplate (release) is what we're using in our pipeline to fire off the…
0
votes
1 answer

How to add release.useAutomaticVersion=true in build.gradle file for auto versioning?

I'm running gradle-release command as follows but I need to movr release.useAutomaticVersion=true inside build.gradle. ./gradlew gitOperations release -Prelease.useAutomaticVersion=true
Sandeep
  • 15
  • 6
0
votes
1 answer

jenkins release plugin compatible with multipipeline job

https://wiki.jenkins.io/display/JENKINS/Release+Plugin Right now we have jenkins release plugin that works with freestyle jobs. Any idea if we have release plugin compatible with mutlibranch and multipipeline jobs. I just want Release button to be…