I am trying to use the gradle-release plugin in conjunction with the publishing feature. When I run release, I’d like to have my artifacts published. Initially I tried:
apply from: 'http://tellurianring.com/projects/gradle-plugins/gradle-release/apply.groovy'
createReleaseTag.dependsOn publish
publishing {
...
}
But that gave me an error that “Cannot configure the ‘publishing’ extension after it has been accessed.”
Knowing publishing is a delayed block (whatever that means ), I then tried:
apply from: 'http://tellurianring.com/projects/gradle-plugins/gradle-release/apply.groovy'
publishing {
...
createReleaseTag.dependsOn publish
}
But same error. Can these 2 work together? And if so, how?