apache / apache/maven-compiler-plugin
The referenced class will not be compiled
- Dominant language
- Java
- Stars
- 261
- Forks
- 191
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 8
Description
### Affected version
4.0.0-rc-4
### Bug description
I looked at the current incremental compilation code. After we analyze the compiled class, do we also need to compile other classes related to it? I feel that the code of version 3.x is already good enough. We just need to add it and find the dependencies. I have looked at the [gradle](https://github.com/gradle/gradle/blob/master/platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/AbstractRecompilationSpecProvider.java#L79C9-L79C51) code. They have this logic. The parameters of 4.x are too complicated. Users should not be aware of so many scopes. There are some other small issues, how can we discuss them together
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with AbstractRecompilationSpecProvider.java in the referenced Gradle comparison and trace the Maven compiler plugin's 4.x incremental compilation path for referenced classes. Compare it with the 3.x behavior and determine how related dependencies are discovered. Done means the referenced class and its required related classes are compiled without exposing unnecessary scope complexity to users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100