Skip to content

Conversation

@nakamura-to
Copy link
Member

Summary

  • Restructured the compile module to improve separation of concerns and maintainability
  • Extracted configuration logic into dedicated classes for better organization
  • Cleaned up unused constants and fixed minor syntax issues

Changes

New Class Structure

  • CompilePlugin: Simplified to act as an entry point that delegates to CompileConfigurator
  • CompileConfigurator: Central configuration manager that coordinates Java and Kotlin configuration
  • JavaCompileConfigurator: Handles Java-specific compilation configuration
  • KotlinCompileConfigurator: Handles Kotlin/KAPT-specific compilation configuration

Code Cleanup

  • Removed unused PLUGIN_ID constant from CompilePlugin
  • Fixed double semicolon syntax error in JavaCompileConfigurator
  • Removed unnecessary Objects.requireNonNull call in Groovy code
  • Applied code formatting with spotlessApply

Documentation

  • Updated CLAUDE.md to reflect the new class structure

Test plan

  • All existing tests pass (./gradlew test)
  • Build succeeds without warnings (./gradlew build)
  • Code formatting applied (./gradlew spotlessApply)

🤖 Generated with Claude Code

- Extract configuration logic into dedicated classes:
  - CompileConfigurator: Central configuration manager
  - JavaCompileConfigurator: Java-specific configuration
  - KotlinCompileConfigurator: Kotlin/KAPT-specific configuration
- Remove unused PLUGIN_ID constant from CompilePlugin
- Fix minor syntax issues (double semicolon, unnecessary null checks)
- Update CLAUDE.md to reflect new class structure

This refactoring improves separation of concerns and makes the code
more maintainable without changing any functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@nakamura-to nakamura-to merged commit 517faa3 into master Jun 29, 2025
2 checks passed
@nakamura-to nakamura-to deleted the refactor/all-classes branch June 29, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants