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
Hi, I'm trying to use the plugin in the settings.gradle, as we have a multi repo configuration and in the settings.gradle we infer the version of our projects (which is either the git tag, or a snapshot version).
When trying to do so, I get:
> Failed to apply plugin 'com.palantir.git-version'.
> class org.gradle.initialization.DefaultSettings_Decorated cannot be cast to class org.gradle.api.Project (org.gradle.initialization.DefaultSettings_Decorated and org.gradle.api.Project are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @7e0b37bc)
Is it possible for the plugin to work both inside build.gradle and settings.gradle? If so, are you willing to include this feature in this project? I can help with the implementation if you want.
The text was updated successfully, but these errors were encountered:
What happened?
Hi, I'm trying to use the plugin in the
settings.gradle
, as we have a multi repo configuration and in thesettings.gradle
we infer the version of our projects (which is either the git tag, or a snapshot version).When trying to do so, I get:
Looking at this SO answer, it seems the issue is that the plugin is not built to be used in
settings.gradle
: https://stackoverflow.com/questions/42953816/org-gradle-initialization-defaultsettings-decorated-cannot-be-cast-to-org-gradleWhat did you want to happen?
Is it possible for the plugin to work both inside
build.gradle
andsettings.gradle
? If so, are you willing to include this feature in this project? I can help with the implementation if you want.The text was updated successfully, but these errors were encountered: