researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
863 stars 223 forks source link

versionPropertyFile not found into git adapter #321

Open fpitpit opened 4 years ago

fpitpit commented 4 years ago

In 2.8.1 field versionPropertyFile not found but it works with 2.8.0

this is my release.gradle

release { scmAdapters = [GitAdapter]

git {
    requireBranch = 'master'
    pushToRemote = 'origin'
    pushToBranchPrefix = ''
    commitVersionFileOnly = false
    versionPropertyFile = '../gradle.properties'

}

}

OneHalf3544 commented 4 years ago

I think it's always had had to be declared outside of git closure:

release {
    scmAdapters = [GitAdapter]
    versionPropertyFile = '../gradle.properties'
    git {
        requireBranch = 'master'
        pushToRemote = 'origin'
        pushToBranchPrefix = ''
        commitVersionFileOnly = false
    }
}