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

Problems reading data from Binary store in /tmp/gradle7963227675482339513.bin (exist: true)

Gradle refresh failed error while trying to import an old project into the android studio. How can this be resolved? Thanks. Error:Problems reading data from Binary store in /tmp/gradle7963227675482339513.bin (exist: true)
10
votes
1 answer

gradle-release plugin + maven publishing plugin

I'm creating gradle builds as a new gradle user, but I have worked with maven in the past. I'm trying to reproduce actions of the maven release plugin: Change branch version to Release number (commit at svn) Create a tag (at svn) Deploy the release…
8
votes
1 answer

Change the release process from SNAPSHOT to build number

Currently we are using axion-release-plugin to control our release process. Now we would like to drop the SNAPSHOT and introduce the build number in our release process. So that we can achieve CI. Basically currently we are using version…
Shobhit
  • 488
  • 2
  • 11
7
votes
1 answer

Android Studio, Gradle: How to automatically publish release.apk to svn repository?

In Maven, a release process works without problems. Since I was forced to use Android Studio with Gradle, I want to achieve the same behaviour as I had with Eclipse and Maven. I found some quite good Maven-like release plugin…
Bevor
  • 8,396
  • 15
  • 77
  • 141
6
votes
1 answer

Gradle release plugin which stores version in build.gradle

I'm converting my application from maven to gradle, and I'm looking for maven-release-plugin alternative for gradle. All I need from the plugin is: remove '-SNAPSHOT' suffix from the version and commit to git repo create new git tag on this…
baratali
  • 443
  • 7
  • 16
5
votes
3 answers

SSH Git access using Gradle Release Plugin

Using Jenkins Pipeline I changed the Repository URL from http to ssh git access. After doing that the job is not working anymore (before that all worked correctly). Down below the logs: :xxxxxx:checkUpdateNeeded Running [git, remote, update]…
5
votes
1 answer

Gradle creating duplicate start scripts into bin directory

I am trying to create multiple start script files through gradle. But somehow one particular start script file is getting duplicated. startScripts.enabled = false run.enabled = false def createScript(project, mainClass, name) { …
suraj_fale
  • 978
  • 2
  • 21
  • 53
4
votes
1 answer

Release multimodule project using one version and tag in Gradle

I have multimodule project in Gradle, where parent build.gradle is just an aggregator of subprojects, without any sources. Structure: parent with version in gradle.properties - child1 inheriting version - child2 inheriting version Both children…
Michal Kordas
  • 10,475
  • 7
  • 58
  • 103
4
votes
1 answer

gradle release plugin automatic version pattern

I'm using gradle-release-plugin with jenkins and I want use gradle release -Prelease.useAutomaticVersion=true to automatic increase version. But this automatic move the ".patch" number (assume major.minor.patch version) and I'm trying to move the…
Jaume Suñer Mut
  • 381
  • 4
  • 11
3
votes
0 answers

Maven/gradle release-plugin authentication in gitlab ci

I am using https://github.com/researchgate/gradle-release with the below config in my ci on Gitlab: release: image: gradle:jdk11 stage: release script: - git checkout master - ./gradlew release only: - master when: manual And it complains that…
BlackLog
  • 301
  • 1
  • 5
  • 17
3
votes
3 answers

How to pass Git SSH credentials to Gradle release plugin in Jenkins?

I’m trying to employ the Gradle release plugin on our client’s Jenkins (1.x, so no Jenkinsfile pipelines… ). I tested it on my box, and everything is well. However, when I invoke the build job, it fails with this output: Task…
Ray
  • 3,084
  • 2
  • 19
  • 27
3
votes
0 answers

Gradle Release plugin with Git submodules and Jenkins

I have a problem when execute the Gradle Release plugin on Jenkins. The project is a microservices achitecture with this folder structure: root \- configserver \- serviceregistry \- authserver \- service1 where each service is a git…
Francesco
  • 313
  • 3
  • 11
3
votes
1 answer

Why does Jenkins hang when I try to build with the gradle-release plugin?

I set up the release plugin on my Grails project and successfully ran it on my localhost. When I try to set up the same build in Jenkins, the build hangs indefinitely. The last thing in the output before it hangs is the checkCommitNeeded…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
3
votes
1 answer

Gradle subproject versioning

We are currently migrating our project from maven to gradle. Our setup looks like this: Parent pom project Subproject 1 Subproject 2 (compile depends 1) Subproject 3 (compile depends on 2 and 1) All these maven subprojects are independently…
malejpavouk
  • 4,297
  • 6
  • 41
  • 67
3
votes
1 answer

How to I pass GIT's username and password to gradle plugin?

I'm trying to release using the gradle release plugin but whenever the plugin is using GIT, it's not passing my username and password: I 'm invoking it as: I'm using: C:\GradleReleaseTest>gradle…
jvergara
  • 101
  • 2
  • 4
1
2 3 4