jprante / gradle-plugin-jflex

A JFlex plugin for Gradle
Apache License 2.0
8 stars 6 forks source link

Default sources generated to build/generated/sources/main, not build/generated/sources/jflex #20

Open anuraaga opened 2 years ago

anuraaga commented 2 years ago

The readme states that the default target directory for generated sources is ${project.buildDir}/generated/sources/jflex, which seems like a nice idiomatic directory. But it seems like currently this is not correct and it is being generated into build/generated/sources/main.

https://github.com/jprante/gradle-plugin-jflex/blob/master/src/main/groovy/org/xbib/gradle/plugin/JFlexPlugin.groovy#L68

stalb commented 1 year ago

In fact something including "jflex" and the sourceset name like ${project.buildDir}/generated/sources/jflex/java/${sourceSet.name} would be better to ensure uniqueness of the output directory.