lgrignon / jsweet-gradle-plugin

Brings the power of JSweet to Gradle
Apache License 2.0
17 stars 15 forks source link

Applying 'groovy' plugin for tests only yields a missing folder error #3

Closed ghost closed 7 years ago

ghost commented 8 years ago
apply plugin 'groovy'
apply plugin: 'org.jsweet.jsweet-gradle-plugin'

(I use 'groovy' only for tests using the spock framework) =>

> java.lang.IllegalStateException: basedir /home/jan/code/orientbase/src/main/groovy does not exist

workaround:

tasks.jsweet.setSources(sourceSets.getByName("main").getJava())

I will do a PR in a few days if you want, tonight is too late, and I have other things to finish...

lgrignon commented 8 years ago

Hello @angexis, did you find time to add this feature?

ghost commented 8 years ago

Hello @lgrignon ! I think I had it fixed at that time but I did not do the PR... now the file was renamed and I'd have to redo and test it again... I had to temporarily suspend my off-work developing activity (I hope I will be able to resume soon!)... Basically the fix was to replace: sources.getSrcDirs(); with sources.getAllJava().getSrcDirs(); This allows having more than just Java source dirs and leave them out of the transpiler which does not support those languages. Too bad I did not do the PR right away, my apologies about that.