Skip to content

Modernize build, fix warnings, add eclipseFactoryPath#6

Merged
arakelian merged 2 commits intomainfrom
arakelian/eclipse-factorypath
Feb 24, 2026
Merged

Modernize build, fix warnings, add eclipseFactoryPath#6
arakelian merged 2 commits intomainfrom
arakelian/eclipse-factorypath

Conversation

@arakelian
Copy link
Owner

Summary

  • Add eclipseFactoryPath Gradle task to generate .factorypath for Eclipse annotation processing
  • Fix 16 errorprone warnings using pattern-matching instanceof (Java 16+ feature)
  • Fix 1 errorprone warning by removing redundant continue statement
  • Add 32 javadoc comments covering package, enum constants, and public methods
  • Create Gradle version catalog to centralize all dependency/plugin versions
  • Apply Log4j and JUnit BOMs for transitive dependency management
  • Add Java toolchain declaration to replace per-task source/target compatibility
  • Replace Ant-based readme task with native Groovy implementation
  • Replace macro system with proper Gradle lifecycle tasks for better compatibility

Changes

  • build.gradle: Use version catalog aliases for plugins, apply BOMs for dependency version management
  • core.gradle: Add Java toolchain, remove macros, replace lifecycle tasks with proper Gradle pattern
  • gradle/libs.versions.toml: New file with centralized versions for all dependencies and plugins
  • Source files: Add javadoc and fix compiler warnings

All changes maintain backward compatibility and improve code quality, maintainability, and build performance.

🤖 Generated with Claude Code

arakelian and others added 2 commits February 24, 2026 01:00
- Add eclipseFactoryPath Gradle task to generate .factorypath for Eclipse annotation processing
- Fix 16 errorprone PatternMatchingInstanceof warnings using Java 16+ pattern-matching instanceof
- Fix 1 errorprone RedundantControlFlow warning by removing redundant continue statement
- Add 32 javadoc comments: package-level, enum constants, and 21 public methods
- Create gradle/libs.versions.toml version catalog centralizing dependency versions
- Replace hardcoded plugin versions with version catalog references using alias()
- Apply Log4j and JUnit BOMs to manage transitive dependency versions
- Add Java toolchain declaration to replace per-task sourceCompatibility/targetCompatibility
- Replace Ant-based readme task with native Groovy String.replaceAll()
- Replace macro/task-name-rewriting system with proper Gradle lifecycle tasks
- Remove configuration cache incompatibilities

These changes improve code quality, maintainability, and build performance while remaining fully backward compatible.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- actions/checkout v4 -> v6
- actions/setup-java v4 -> v5
- gradle/actions/setup-gradle v4 -> v5
- Add explicit permissions block for least-privilege

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arakelian arakelian merged commit eb0918e into main Feb 24, 2026
1 check 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