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

gradle scaffold: Cannot cast object '[configuration ':publicLib']' with class 'java.util.ArrayList' to class FileCollection #119

Open
ssonumerate opened this issue May 5, 2017 · 12 comments

Comments

@ssonumerate
Copy link

mac osx 10.12.4
jdk 1.8.0_31
gradle 3.5

~/experiment/tutorial/MyEquinoxApp 🌈 :gradle scaffold
:
:
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/simonso/experiment/tutorial/MyEquinoxApp/build.gradle' line: 13

  • What went wrong:
    A problem occurred evaluating root project 'MyEquinoxApp'.

Failed to apply plugin [id 'org.akhikhl.wuff.eclipse-equinox-app']
Cannot cast object '[configuration ':publicLib']' with class 'java.util.ArrayList' to class 'org.gradle.api.file.FileCollection' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.gradle.api.file.FileCollection(org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
@QingMings
Copy link

I also met the same error, Is that settled?

@KacAmo
Copy link

KacAmo commented Jul 19, 2017

add me to the list :-) .

The error is coming up with the shipped examples.

@omerbsezer
Copy link

I had a same problem..

A problem occurred evaluating root project 'MyRcpApp'.

Failed to apply plugin [id 'org.akhikhl.wuff.eclipse-rcp-app']
Cannot cast object '[configuration ':publicLib']' with class 'java.util.Arr ayList' to class 'org.gradle.api.file.FileCollection' due to: groovy.lang.Groovy RuntimeException: Could not find matching constructor for: org.gradle.api.file.F ileCollection(org.gradle.api.internal.artifacts.configurations.DefaultConfigurat ion_Decorated)

with:
Gradle: 4.2.1
Groovy: 2.4.12
JVM:1.8.0_144

@numical
Copy link

numical commented Jan 11, 2018

I saw at least one possible solution here

@ice1000
Copy link

ice1000 commented Mar 5, 2018

Same problem here

@ice1000
Copy link

ice1000 commented Mar 5, 2018

I think this repo is no longer maintained. Any alternative?

@bueli
Copy link

bueli commented Mar 5, 2018

Check out my fork v0.0.21. You need my upgraded unpuzzle version 0.0.23.

I use the gradle
:publishToMavenLocal
target to bypass the bintray/mavencentral repository step for unpuzzle.

I'm interested in feedback if it works on your side.

@michaelbenoit
Copy link

Hi,

are there already some news when the bugfix will be released ?

@MarceloRuiz
Copy link

@bueli
Does your fork work with the latest versions of e(fx)clipse and Gradle? Any idea of when they'll be uploaded to the plugin repository? I have been trying to launch the application with the Diffplug's goomph but it does't work with e(fx)clipse applications and they don't seem to care about e(fx)clipse at all...
Thanks!

@bueli
Copy link

bueli commented Apr 28, 2018

Hi @MarceloRuiz
No idea. Did you try it?
What was the result?

@MarceloRuiz
Copy link

Hi @bueli Thanks for getting back to me. I am quite new to this. I didn't try it. I downloaded your repository and it says wuff-0.0.21. I opened the MyEfxclipseApp example app folder and the gradle.properties shows wuff_version=0.0.14 and after executing it I was getting the same error described in the first post. I also updated the version to 0.0.21 but the error I get is 'Could not resolve org.akhikhl.wuff:wuff-plugin:0.0.21'
Thanks!

@000dry
Copy link

000dry commented Jan 29, 2020

@numical thanks, that's pointed us in the right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants