Skip to content

Conversation

@nakamura-to
Copy link
Member

Summary

  • Simplified project structure by removing the codegen-test module and moving its functionality to the root project
  • Migrated dependency management to Gradle version catalog for centralized version control
  • Improved maintainability and reduced complexity of the build configuration

Changes

1. Project Structure Simplification

  • Removed the separate codegen-test module
  • Moved integration test configuration to the root build.gradle.kts
  • Moved SQL initialization script and templates to the root project
  • This reduces the number of Gradle modules from 2 to 1, simplifying the build

2. Gradle Version Catalog Migration

  • Created gradle/libs.versions.toml to centralize all dependency versions
  • Updated both root and codegen module to use the version catalog
  • Removed hardcoded version strings from build files
  • Configured the codegen module (included build) to reference the parent's version catalog

Benefits

  • Simpler structure: One less module to maintain
  • Centralized versions: All dependency versions in one place
  • Better IDE support: Version catalog provides autocomplete and navigation
  • Easier updates: Change versions in one location
  • Consistent dependencies: Ensures version alignment across modules

Test plan

  • Build passes with ./gradlew clean build
  • Code formatting applied with ./gradlew spotlessApply
  • Integration tests can be run with ./gradlew domaCodeGenJavaAll build
  • Plugin can be published (structure maintained for com.gradle.plugin-publish)

🤖 Generated with Claude Code

nakamura-to and others added 2 commits June 28, 2025 22:22
Integrated test functionality directly into the root project for better
maintainability. This reduces complexity and makes testing more straightforward.

- Removed separate codegen-test module and all its files
- Moved test configuration to root build.gradle.kts
- Integrated template files to root /template directory
- Updated CI workflow to reflect new structure
- Added PostgreSQL support via Testcontainers for testing
- Updated .gitignore for generated code paths

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

Co-Authored-By: Claude <[email protected]>
- Create gradle/libs.versions.toml with all dependency versions
- Update root and codegen build.gradle.kts to use version catalog
- Configure codegen module to reference parent version catalog
- Remove redundant plugin version declarations
- Centralize dependency version management for better maintainability

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

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions bot added the chore label Jun 28, 2025
@nakamura-to nakamura-to merged commit afb6cf9 into master Jun 28, 2025
1 check passed
@nakamura-to nakamura-to deleted the chore/improve-project-structure branch June 28, 2025 14:12
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