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
3
votes
1 answer

Why does Jenkins change my gradlew, and how to prevent that?

I'm trying to 'release' my project using the gradle release-plugin The plugin starts by checking if my working copy is clean, so that only properly versioned stuff gets released. This works just fine on my local machine. But when I try the same…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
2
votes
1 answer

Gradle release composite build with a release order

I have a gradle composite build in following directory structure. . ├── component-1 ├── component-2 ├── component-3 └── composite-build Here, all components are multi-project builds. Each component has implemented the release plugin and can be…
2
votes
1 answer

Gradle Release Plugin for projects not following semantic versioning scheme

I'm writing a components that will be working with some particular version of platform. Let's say the platform is in version 1.18.0, then I want to release component e.g. with version 1.18.0.1, then 1.18.0.2. If platform updates I want to release…
2
votes
2 answers

Gradle Release Plugin for functionalities like Maven release

I am in the process of converting the existing maven project to Gradle for which I want to use alternative for maven release plugin. Mainly the functionality to remove snapshot and autoincrement by 1 once the release is cut. I came across to use…
2
votes
2 answers

gradle-release-plugin release task on Bamboo cause infinite loop

I use Bamboo to release builds and publish it to Nexus. It works well using maven-release-plugin, but on Gradle, using gradle-release-plugin I got infinite loop. Right after build plan task succeded, Bamboo checks git, found 2 new commits "[Gradle…
DAlekperov
  • 141
  • 5
2
votes
1 answer

How to build tagged version commit on Jenkins using researchgate/gradle-release

I am using Jenkins, which is the only one allowed to publish to our maven repository, and gradle-release plugin to tag a version and move to new snapshot version. I noticed the tagged version wasn't getting built because the push happens after the…
sofiaguyang
  • 1,123
  • 1
  • 14
  • 21
2
votes
1 answer

Where to store release notes in Java projects that use a Gradle-Git-Artifactory stack

I have several inter-dependent Java projects, all of which use Git for source control, Gradle for builds and releases, and Artifactory as a binary repository. The projects are all internal, used only within the company. What's a good place to store…
Malt
  • 28,965
  • 9
  • 65
  • 105
1
vote
1 answer

Build failing after upgrading researchgate to 3.0.0

Cannot set the value of extension 'release' property 'pushReleaseVersionBranch' of type java.lang.String using an instance of type java.lang.Boolean. it was working earlier with the same config for 'pushReleaseVersionBranch' as false tried with…
1
vote
1 answer

Gradle release plugin with Jenkins not pushing release builds

I'm trying to use gradle-release plugin while using Jenkins for CI. Two commits are created on doing a release using: gradle release -PuseAutomaticVersion=true A pre-tag commit with say version=0.0.4 and another with version=0.0.5-SNAPSHOT. The…
1
vote
2 answers

Gradle-release-plugin Updates were rejected because the tip of your current branch is behind

At my workplace, we use a monthly release branch that's shared across several developers. Gradle version is 2.14.1 We manually trigger the code build and release (task) using Jenkins (which is effective running - gradle clean compileJava…
1
vote
1 answer

How can I use the gradle-release-plugin to auto-increment the minor - not the incremental

I'm using the gradle-release-plugin successfully in jenkins with the option gradle.release.useAutomaticVersion=true; however, it is incrementing the incremental and i'd like to increment the minor.... 1.14.0 want to increment to 1.15.0, rather than…
J Vipe
  • 39
  • 1
  • 5
1
vote
0 answers

Gradle-release plugin and SSH configuration in a Gitlab CI context

I'm using gradle-release plugin in a CI/CD context with GitLab-CI. I have set up a public private key in GitLab to allow my pipeline to push stuff in the repo but I have an issue, I guess, with how to pass SSH info to gradle process. In my pipeline…
1
vote
1 answer

Gradle Release Plugin: How to keep version in a text file (not in a property file)?

Gradle Release Plugin supports keeping version in a property file (see versionPropertyFile, versionProperties and versionPatterns configuration parameters). I need to keep the version in a plain version.txt file that contains only version. Example…
Aleks Ya
  • 859
  • 5
  • 15
  • 27
1
vote
1 answer

Gradle release plugin no build task

I recently started implementing Gradle release plugin. I have been through https://github.com/researchgate/gradle-release#custom-release-steps. The plug-in is updating SNAPSHOT version to Release version, updating the current SNAPSHOT version to…
sudhir
  • 219
  • 5
  • 17
1
vote
0 answers

why do I need to configure both uploadArchives and artifactoryPublish for my build archives to be published?

I have a lib.zip and myApp.war that I need to publish to artifactory. Initially, I started with artifactoryPublish, hoping that when I run ./gradlew clean release, the war and zip gets published to artifactory. But I observed only that the war gets…
brain storm
  • 30,124
  • 69
  • 225
  • 393