sudhir
sudhir

Reputation: 219

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 next version. Also gradle release task is executing compile, build steps. I automated this in Jenkins. I tried "buildTasks = []" but still build task has been executed. I couldn't find documentation on this. Please help.

FYI: I have separate jenkins job that only builds my project. I created new Jenkins job for release task. For release task I don't want compile, build tasks.

Regards

Sudhir

Upvotes: 1

Views: 1673

Answers (1)

Yaroslav
Yaroslav

Reputation: 466

buildTasks = [] works fine for me. No other gradle tasks were called.

release {
    ...
    tagTemplate = '${version}'
    versionPropertyFile = 'gradle.properties'
    buildTasks = []
    ...    
}

Upvotes: 3

Related Questions