You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
I am trying to use the release-opinion plugin along with the maven-publishing plugin in a multi-project gradle build. The problem is that gradle is complaining about the publishing extension already being evaluated.
If I use the release-base plugin, this error goes away.
if you go into the test directory and run the command gw tasks --include-build ../test-plugin you will experience the issue
If I apply the maven-publish plugin directly above the publishing closure in each build.gradle, it works correctly. If I apply the maven-publish plugin in the TestPlugin for each project or at the top of the build.gradle files, I get the error
The text was updated successfully, but these errors were encountered:
right, but I need the evaluationDependsOnChildren()
I figured out what the issue is. It is related to this.
If I reimplement the RebuildVersionStrategy class and comment out def props = project.properties.keySet().find { it.startsWith('release.') }, it works as expected.
Using something like def props = project.hasProperty(SemVerStrategy.SCOPE_PROP) || project.hasProperty(SemVerStrategy.STAGE_PROP) will work around the gradle issue
Regarding the explicit version, that was a typo in the test project. Thanks
My sub projects are more like composite builds. They are dynamically added if they are present on the users computer. Specific tasks (release being 1 of them) are only allowed to run for the root project.
I am trying to use the release-opinion plugin along with the maven-publishing plugin in a multi-project gradle build. The problem is that gradle is complaining about the publishing extension already being evaluated.
If I use the release-base plugin, this error goes away.
I was able to reproduce the bug here test-project.zip
if you go into the test directory and run the command
gw tasks --include-build ../test-plugin
you will experience the issueIf I apply the
maven-publish
plugin directly above thepublishing
closure in each build.gradle, it works correctly. If I apply themaven-publish
plugin in theTestPlugin
for each project or at the top of the build.gradle files, I get the errorThe text was updated successfully, but these errors were encountered: