akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
153 stars 51 forks source link

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

Open ssonumerate opened 7 years ago

ssonumerate commented 7 years ago

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.

QingMings commented 7 years ago

I also met the same error, Is that settled?

KacAmo commented 7 years ago

add me to the list :-) .

The error is coming up with the shipped examples.

omerbsezer commented 6 years ago

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 commented 6 years ago

I saw at least one possible solution here

ice1000 commented 6 years ago

Same problem here

ice1000 commented 6 years ago

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

bueli commented 6 years ago

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 commented 6 years ago

Hi,

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

MarceloRuiz commented 6 years ago

@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 commented 6 years ago

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

MarceloRuiz commented 6 years ago

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 commented 4 years ago

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