vivin / gradle-semantic-build-versioning

Gradle plugin to generate version-numbers and tags using semantic versioning
MIT License
85 stars 32 forks source link

Getting "org.gradle.api.internal.project.DefaultProject_Decorated cannot be cast to org.gradle.api.initialization.Settings". #75

Closed Pralhadb closed 7 years ago

Pralhadb commented 7 years ago

I have used below plugin in my build.gradle: `` apply plugin: "net.vivin.gradle-semantic-build-versioning"

dependencies { classpath "gradle.plugin.net.vivin:gradle-semantic-build-versioning:3.0.4" }

but, I am getting "org.gradle.api.internal.project.DefaultProject_Decorated cannot be cast to org.gradle.api.initialization.Setting" exception with this .

vivin commented 7 years ago

@Pralhadb This is a settings plugin, so it must be applied inside settings.gradle. Take a look at the README; it explains how to set it up.