Gradle 2.14-rc-1 breaks convention access


(Danny Thomas) #1

Believe the Gradle team is aware of this (assume this is Groovy -> Java migration for core classes), but thought I’d post in the event you need more examples:

https://travis-ci.org/nebula-plugins/gradle-info-plugin/builds/132428089

java.lang.ClassCastException: org.gradle.api.plugins.JavaPluginConvention cannot be cast to groovy.lang.GroovyObject
	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:50)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:307)
	at nebula.plugin.info.java.InfoJavaPlugin$_apply_closure2$_closure3$_closure4$_closure5.doCall(InfoJavaPlugin.groovy:53)
	at nebula.plugin.info.java.InfoJavaPlugin$_apply_closure2$_closure3$_closure4$_closure5.doCall(InfoJavaPlugin.groovy)

For call:


(Stefan Wolf) #2

Thank you for reporting. This is a known compatibility issue with Gradle 2.14-rc-1 and Gradle plugins and will be fixed in rc-2.


(Jason Miller) #3

Glad to hear this will be addressed! I was about to report this one myself as I noticed it broke several nebula plugins and wasn’t looking forward to working around it.