Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข6mo agoโ€ข
13 replies
Asdru

how to generate and use java files in generated sources properly

i have this code snipped
// Write to target/generated-sources/com/asdru/oopack/Version.java
        JavaFile javaFile = JavaFile.builder(packageName, enumType)
                .build();
        Path path = Paths.get("target/generated-sources");
        javaFile.writeTo(path);

that creates a version enum at the mentioned path. however my main project doesnt seem to find it (and neither does the github action i have setup)
Was this page helpful?