Skip to content

fix(build): exclude overlay files from javadoc and sourcesJar tasks#2322

Merged
cmgrote merged 2 commits intomainfrom
dependencies
Mar 12, 2026
Merged

fix(build): exclude overlay files from javadoc and sourcesJar tasks#2322
cmgrote merged 2 commits intomainfrom
dependencies

Conversation

@cmgrote
Copy link
Collaborator

@cmgrote cmgrote commented Mar 12, 2026

Summary

  • The freefair lombok plugin uses afterEvaluate to wire delombok.input to the raw source directories (not the filtered SourceDirectorySet FileTree), so sourceSets["main"].java.exclude(...) is never seen by delombok
  • Overlay files (_overlays/**) are bare method fragments (no package, import, or class wrapper) — they end up in the delombok output and cause 93 javadoc errors: cannot find symbol and unnamed classes are a preview feature
  • Fix: add explicit exclude("com/atlan/model/assets/_overlays/**") directly on the javadoc and sourcesJar tasks, which operate on the delombok output directory and respect path-based excludes

Test plan

  • Snapshot CI job passes
  • JavaDocs CI job passes

🤖 Generated with Claude Code

cmgrote and others added 2 commits March 12, 2026 19:53
The freefair lombok plugin uses afterEvaluate to set delombok's input
to the source directories directly (not the filtered SourceDirectorySet
FileTree), so the sourceSets exclude does not propagate to delombok.
The overlay files (bare method fragments with no class/package/imports)
then appear in the delombok output and cause 93 javadoc errors.

Fix: add explicit excludes on the javadoc and sourcesJar tasks, which
operate on the delombok output directory and support path-based excludes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@cmgrote cmgrote enabled auto-merge March 12, 2026 20:00
@cmgrote cmgrote merged commit 0cb172d into main Mar 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant