Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release does not build #374

Closed
ChrLipp opened this issue Dec 14, 2022 · 1 comment
Closed

release does not build #374

ChrLipp opened this issue Dec 14, 2022 · 1 comment

Comments

@ChrLipp
Copy link

ChrLipp commented Dec 14, 2022

I have a Gradle Groovy based build script. The lines associated with the release plugin are:

buildscript {
	repositories {
		mavenCentral()
	}
	dependencies {
		classpath "net.researchgate:gradle-release:3.0.2"
	}
}
apply plugin: 'net.researchgate.release'

// release always with a clean build
beforeReleaseBuild.dependsOn clean

Since some versions of the release plugin (change to 3.x?) the build is not executed anymore. The following steps are executed:

Executing 'release'...

> Task :xxx-release:createScmAdapter
> Task :xxx-release:initScmAdapter
> Task :xxx-release:checkCommitNeeded
> Task :xxx-release:checkUpdateNeeded
> Task :xxx-release:checkoutMergeToReleaseBranch SKIPPED
> Task :xxx-release:unSnapshotVersion

> Task :xxx-release:confirmReleaseVersion

??> This release version for xxx: [0.0.32]  (WAITING FOR INPUT BELOW)

> Task :release

> Task :xxx-release:checkSnapshotDependencies
> Task :xxx-release:xxx-release:clean
> Task :xxx-release:xxx-release:beforeReleaseBuild
> Task :xxx-release:xxx-release:afterReleaseBuild UP-TO-DATE
> Task :xxx-release:runBuildTasks
> Task :xxx-release:preTagCommit
> Task :xxx-release:createReleaseTag
> Task :xxx-release:checkoutMergeFromReleaseBranch SKIPPED

> Task :xxx-release:updateVersion

??> Enter the next version (current one released as [0.0.32]): [0.0.33-SNAPSHOT]  (WAITING FOR INPUT BELOW)

> Task :xxx-release:commitNewVersion

BUILD SUCCESSFUL in 1m 55s

You can see that clean is executed, but afterReleaseBuild shows UP-TO-DATE. Have I misunderstood something here?
Thanks for your work!

@ChrLipp
Copy link
Author

ChrLipp commented Dec 15, 2022

Even if the approach above worked earlier, it seems it was always wrong. Changed it to

// release always with a clean build
release.buildTasks = ['clean', 'build']

and this works as desired.

@ChrLipp ChrLipp closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant