alexvasilkov / GradleGitDependenciesPlugin

Gradle plugin to add external git repos as project dependencies
Apache License 2.0
106 stars 15 forks source link

Incompatible with gradle version 6.5 #6

Closed jeffreydelooff closed 4 years ago

jeffreydelooff commented 4 years ago

Results in a

Caused by: java.lang.ClassCastException: org.gradle.api.internal.project.DefaultProject_Decorated incompatible with org.gradle.api.initialization.Settings
    at com.alexvasilkov.gradle.git.SettingsPlugin.apply(SettingsPlugin.groovy)
alexvasilkov commented 4 years ago

Version 2.0.1 works fine for me with Gradle 6.5 in several different projects. Please provide more details about your usage otherwise I can do little.

Stacktrace you shared saying that sombody is trying to cast Project instance to Settings which makes little sense to me.

bmc08gt commented 4 years ago

@jeffreydelooff are you trying to apply the plugin in the root build.gradle? it needs to be applied in settings.gradle

jeffreydelooff commented 4 years ago

Ahh that might have been it. It wasn't in settings.gradle. My bad.