Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cast object extension jruby #421

Open
matshou opened this issue Feb 8, 2021 · 2 comments
Open

Cannot cast object extension jruby #421

matshou opened this issue Feb 8, 2021 · 2 comments

Comments

@matshou
Copy link

matshou commented Feb 8, 2021

Gradle version: 6.8.2
Plugin version: jruby-gradle.base:2.0.1

* What went wrong:
Could not determine the dependencies of task ':generateChangelog'.
> Cannot cast object 'extension 'jruby'' with class 'com.github.jrubygradle.JRubyPluginExtension_Decorated' to class 'org.ysb33r.grolifant.api.AbstractCombinedProjectTaskExtension'

Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'extension 'jruby'' with class 'com.github.jrubygradle.JRubyPluginExtension_Decorated' to class 'org.ysb33r.grolifant.api.AbstractCombinedProjectTaskExtension'
	at org.ysb33r.grolifant.api.AbstractCombinedProjectTaskExtension.getProjectExtension(AbstractCombinedProjectTaskExtension.groovy:101)
	at com.github.jrubygradle.JRubyPluginExtension_Decorated.getProjectExtension(Unknown Source)
	at com.github.jrubygradle.JRubyPluginExtension.getExtFromProject(JRubyPluginExtension.groovy:305)
	at com.github.jrubygradle.JRubyPluginExtension.getGemPrepareTaskName(JRubyPluginExtension.groovy:282)
	at com.github.jrubygradle.JRubyPluginExtension_Decorated.getGemPrepareTaskName(Unknown Source)
	at com.github.jrubygradle.JRubyExec$_closure3.doCall(JRubyExec.groovy:83)
@ysb33r
Copy link
Contributor

ysb33r commented Jun 7, 2021

Looks like you have a mix up of a newer version of Grolifant being introduced by another plugin. DO you have an example of your build script?

@matshou
Copy link
Author

matshou commented Jun 7, 2021

Unfortunately I've moved on to different solutions and no longer have access to code that caused this.

ysb33r added a commit to ysb33r/jruby-gradle-plugin that referenced this issue Jun 18, 2021
ysb33r added a commit to ysb33r/jruby-gradle-plugin that referenced this issue Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants