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
When trying the plugin to replace yet another git based versioning plugin I stumbled on this error:
* What went wrong:
Failed to apply plugin class 'org.gradle.api.plugins.JavaPlugin'.
> Could not create domain object 'test' (JvmTestSuite)
The actual issue is hidden, I found it by running the same command with --stacktrace, I believe the plugin should instead log an error rather than failing with an exception, so it can be diagnosed more easily. The actual message is ok No version strategies were selected. Run build with --info for more detail..
* Exception is:
org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin class 'org.gradle.api.plugins.JavaPlugin'.
at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:173)
at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:151)
at org.gradle.api.plugins.JavaLibraryPlugin.apply(JavaLibraryPlugin.java:51)
at org.gradle.api.plugins.JavaLibraryPlugin.apply(JavaLibraryPlugin.java:40)
at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43)
...
Caused by: java.lang.IllegalStateException: Could not create domain object 'test' (JvmTestSuite)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection$AbstractDomainObjectCreatingProvider.domainObjectCreationException(DefaultNamedDomainObjectCollection.java:976)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection$AbstractDomainObjectCreatingProvider.tryCreate(DefaultNamedDomainObjectCollection.java:948)
...
Caused by: org.gradle.api.GradleException: No version strategies were selected. Run build with --info for more detail.
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67)
at nebula.plugin.release.git.base.ReleasePluginExtension$DelayedVersion.infer(ReleasePluginExtension.groovy:119)
at nebula.plugin.release.git.base.ReleasePluginExtension$DelayedVersion.toString(ReleasePluginExtension.groovy:129)
...
The text was updated successfully, but these errors were encountered:
When trying the plugin to replace yet another git based versioning plugin I stumbled on this error:
The actual issue is hidden, I found it by running the same command with
--stacktrace
, I believe the plugin should instead log an error rather than failing with an exception, so it can be diagnosed more easily. The actual message is okNo version strategies were selected. Run build with --info for more detail.
.The text was updated successfully, but these errors were encountered: