We have a plugin (I believe it’s flyway) that is generating JPA metaclasses into a source folder named “generated”. We have added this folder to managed source directories:
managedSourceDirectories in Compile += baseDirectory.value / "generated"
And we also have the following eclipse settings:
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java // Java project. Don't expect Scala IDE EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.ManagedClasses, EclipseCreateSrc.ManagedResources) // Use .class files instead of generated .scala files for views and routes EclipseKeys.preTasks := Seq(compile in Compile) // Compile the project before generating Eclipse files, so that .class files for views and routes are present
Our problems are:
- when we run “sbt eclipse” the “generated” folder is never added as a source folder
- when we run “sbt docker:publishLocal” the classes that are in that folder are never found.
Can you tell me what we’re missing?
(Edited to add)
I should mention, that we do not use scala at all. Only java.