Has anyone here used the following plugin: `"net.r...
# gradle
l
Has anyone here used the following plugin:
"net.researchgate.release"
within a Kotlin DSL Gradle build? https://github.com/researchgate/gradle-release This project aims to work much like
maven-release-plugin
did with Maven. The problem I'm having is that the DSL relies on Groovy
propertyMissing
magic and don't know how to get it to expose the
GitConfig
properties of the GitAdapter.. specifically I'd like to be able to set:
Copy code
-- Groovy
git {
    requireBranch = 'master|develop'
}
For those interested, I got around this issue by directly invoking the Groovy magic as follows:
Copy code
release {
    with (propertyMissing("git") as GitAdapter.GitConfig) {
        requireBranch = "master|develop"
    }
}
❤️ 1