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

Errror with Convert existing Eclipse plugins and apps to Gradle #113

Open
carlolf opened this issue Jun 18, 2016 · 9 comments
Open

Errror with Convert existing Eclipse plugins and apps to Gradle #113

carlolf opened this issue Jun 18, 2016 · 9 comments

Comments

@carlolf
Copy link

carlolf commented Jun 18, 2016

I tried to convert my existing Eclipse plugins to Gradle using the script from "https://github.com/akhikhl/wuff/wiki/Convert-existing-Eclipse-plugins-and-apps-to-Gradle". I get an error for which I have no idea what might be the reason (using Gradle 2.13):
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[configuration ':de.uvdms.bgetem: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) at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.setProperty(BeanDynamicObject.java:300) at org.gradle.internal.metaobject.BeanDynamicObject.setProperty(BeanDynamicObject.java:155) at org.gradle.internal.metaobject.CompositeDynamicObject.setProperty(CompositeDynamicObject.java:65) at org.gradle.internal.metaobject.AbstractDynamicObject.setProperty(AbstractDynamicObject.java:75) at org.gradle.api.internal.tasks.DefaultSourceSet_Decorated.setProperty(Unknown Source) at org.akhikhl.wuff.OsgiBundleConfigurer$_createConfigurations_closure14.doCall(OsgiBundleConfigurer.groovy:344) at org.akhikhl.wuff.OsgiBundleConfigurer.createConfigurations(OsgiBundleConfigurer.groovy:344) at org.akhikhl.wuff.Configurer.preConfigure(Configurer.groovy:231) at org.akhikhl.wuff.JavaConfigurer.super$2$preConfigure(JavaConfigurer.groovy) at org.akhikhl.wuff.JavaConfigurer.preConfigure(JavaConfigurer.groovy:97) at org.akhikhl.wuff.OsgiBundleConfigurer.super$3$preConfigure(OsgiBundleConfigurer.groovy) at org.akhikhl.wuff.OsgiBundleConfigurer.preConfigure(OsgiBundleConfigurer.groovy:547) at org.akhikhl.wuff.Configurer.apply(Configurer.groovy:37) at org.akhikhl.wuff.Configurer$apply$2.call(Unknown Source) at org.akhikhl.wuff.EclipseBundlePlugin.apply(EclipseBundlePlugin.groovy:22) at org.akhikhl.wuff.EclipseBundlePlugin.apply(EclipseBundlePlugin.groovy) at org.gradle.api.internal.plugins.ImperativeOnlyPluginApplicator.applyImperative(ImperativeOnlyPluginApplicator.java:35)

@nedtwigg
Copy link
Contributor

Might wanna take a look at Goomph and its example project. Currently on 3.0.0-SNAPSHOT, actively seeking feedback before 3.0.0 release.

@petarov
Copy link

petarov commented Aug 30, 2016

I believe this error arises with Gradle 3.0. Previously it was a deprecation warning. I made a few changes that should fix this in my fork.

@prantor
Copy link

prantor commented Oct 15, 2016

Hi Petarov,
When do you plan to publish your fix as an official release?

@srilagit
Copy link

Trying wuff for converting RCP app to gradle for creating Product export.
Faced GroovyCast exception mentioned above and hence tried with Wuff 0.0.13, It proceeded,
but getting "Cannot get property 'name' on null object."
Tried with eclipse neon, gradle 4.10.1 on windows x86_64 OS the sample RCPApp3 in examples.
Set wuff plugin version as 0.0.13.
Any update as of today? am checking after 2 years of this post.. pl comment if wuff can be used and whether it is actively maintained?

@petarov
Copy link

petarov commented Sep 19, 2018

@srilagit I use wuff in production, but I don't believe it is maintained anymore. I think there are several forks around if you check out the other issues. My fork is just basic fixes and updates. You could build it yourself, together with unpuzzle and check if that will work for you.

@srilagit
Copy link

@petarov Thanks for the response. Shall check your fork,

@srilagit
Copy link

@petarov I downloaded your wuff-dev and unpuzzle-dev and successfully built them; had to make few groovy version changes alone. Configured eclipse-photon as eclipse version.
Then tried to apply wuff plugin on wuff-master/examples/RCPApp1 and 3.
Used the build.gradle script given in https://github.com/akhikhl/wuff/wiki/Create-first-RCP-app.
Now getting below error. Pls suggest what is needed to get an RCP Product export.

Could not resolve all files for configuration ':runtime'.
Could not find any matches for eclipse-photon:org.eclipse.core.runtime.compatibility.registry:+ as no versions of eclipse-photon:org.eclipse.core.runtime.compatibility.registry are available.
Searched in the following locations:
- file:/C:/Users/179991/.m2/repository/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/maven-metadata.xml
- file:/C:/Users/179991/.m2/repository/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/
- https://jcenter.bintray.com/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/maven-metadata.xml
- https://jcenter.bintray.com/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/
- http://oss.jfrog.org/artifactory/oss-snapshot-local/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/maven-metadata.xml
- http://oss.jfrog.org/artifactory/oss-snapshot-local/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/
- file:/C:/Users/179991/.wuff/m2_repository/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/maven-metadata.xml
- file:/C:/Users/179991/.wuff/m2_repository/eclipse-photon/org.eclipse.core.runtime.compatibility.registry/

@srilagit
Copy link

@petarov awaiting your response for the issue posted above. As you are actively using wuff in production, pl advise on resolution for above. Mainly wish to create Eclipse RCP App export via gradle build process. Currently using Eclispe Neon on x86.

@petarov
Copy link

petarov commented Oct 24, 2018

@srilagit I don't use wuff to build RCP apps, so this issue is unknown to me. Sorry, I can't support you here.

As far as I can tell, the whole org.eclipse.core.runtime.compatibility component has been removed since Eclipse Neon [1]. Perhaps you can try using a lower Eclipse version in your build.

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

5 participants