You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it boils down to the question if getCompileClasspathElements() returns the classes compiled fom generated sources as well, which could depend on a number of different factors depending on how the code generation is configured.
It might be interesting to not parse those generated sources as source files but rather only as classpath entries. I'm not entirely sure that would work in all cases, but it could speed up builds for projects that heavily use generated sources.
The text was updated successfully, but these errors were encountered:
As identified on
I think it boils down to the question if
getCompileClasspathElements()
returns the classes compiled fom generated sources as well, which could depend on a number of different factors depending on how the code generation is configured.rewrite-maven-plugin/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java
Lines 317 to 324 in 0b8fc33
Right now we define generated sources as anything we find in the
target/
directory, and parse those as source.rewrite-maven-plugin/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java
Lines 302 to 308 in 0b8fc33
Before we then later filter out those generated sources.
rewrite-maven-plugin/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java
Lines 341 to 346 in 9a9428f
It might be interesting to not parse those generated sources as source files but rather only as classpath entries. I'm not entirely sure that would work in all cases, but it could speed up builds for projects that heavily use generated sources.
The text was updated successfully, but these errors were encountered: