Ok, thanks for pointing to that issue.
Would be very interesting to know why/how it still works on the class level
for Gradle. Actually, Java does not mandate the nested directory structure
where a package is represented by a folder (the spec vaguely mentions
alternatives such as a DB-based source
As far as I know there is no way to control this at the moment:
https://discuss.gradle.org/t/antlr-plugin-should-preserve-package-structure/10153
For me it ends up in the right place even in terms of the compiled classes,
not just the jar.
On Mon, Jul 20, 2015 at 1:50 AM Gunnar Morling wrote:
>
Hi,
The build for hibernate-core generates sources using Antlr which end up in
target/generated-src/antlr/main, e.g. GeneratedOrderByFragmentParser.java.
The weird thing is that the generated files are located right within this
directory, i.e. there is *no* directory hierarchy resembling the pac