I'm trying to update my Gradle version from 2.3 to 2.12. When I run the "eclipse" task to generate the eclipse files I'm running into an issue when using the new version (2.12).
The classpathentry nodes generated in the .classpath file no longer contain the exported="true" attribute which is necessary to create a working run target in eclipse.
With version 2.3
<classpathentry
sourcepath="/../some-lib-sources.jar" kind="lib" path="/../some-lib.jar"
exported="true"/>
With version 2.12 (exported="true" is missing)
<classpathentry
sourcepath="/../some-lib-sources.jar" kind="lib" path="/../some-lib.jar"/>
I couldn't find anything helpful about this issue in the Gradle documentation. I'm hoping this is just a simple configuration change.
Does anyone know how to fix this issues?
Update:
So I found the change that I think is causing this issue in the 2.5 release notes
Changes in IDE classpath generation ... All dependencies in projects are marked as exported = false.
.. But I still haven't be able to find any information on how to control what classpathentries get the exported=true attribute.