stoicflame / enunciate-gradle

Gradle plugin for Enunciate
Apache License 2.0
5 stars 4 forks source link

Doesn't work when groovy and/or scala sources are present. #8

Open groszeq opened 8 years ago

groszeq commented 8 years ago

Usage of mainSourceSet.getAllJava() is the culprit here. Gradle groovy plugin ads getAllGroovy() and scala plugin ads getAllScala() methods and they must be used for Enunciate to work. AFAIK it should be able to handle at least groovy.

stoicflame commented 8 years ago

Thanks for the report.

Can you put together a pull request with the suggested fix?

groszeq commented 8 years ago

Ok, I will try to put something together during next few days.

jskov-jyskebank-dk commented 8 years ago

FWIW I looked a bit at this, and cannot figure out how to get access to GroovySourceSet/ScalaSourceSet. They seem to be created by their plugins, unavailable from any configuration/extension.

If I try to apply both Groovy and Java plugins, the SourceSet instance I can access is of type org.gradle.api.internal.tasks.DefaultSourceSet_Decorated which doesn't help me much.