forked from higherkindness/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Don't generate SemanticDB for generated or external sources
Previously, we only checked if a source ended with the "scala" extension before adding it to `SemanticDbInfo`. However, we don't want to generate SemanticDB files for generated files or external files, because they'll have the output directory (beginning with `bazel-out`) in their paths, which isn't guaranteed to be consistent. Also, tell the SemanticDB compiler plugin to generate SemanticDB outside of the output JAR, even if we don't want SemanticDB generated for any of the sources. That way, the output JAR won't include SemanticDB files we don't want.
- Loading branch information
Jaden Peterson
committed
Jan 29, 2025
1 parent
782f590
commit 3723c3a
Showing
3 changed files
with
74 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters