# TODO - jbuild: High-Performance Java Build Tool
This file tracks the remaining work items for jbuild, a Rust implementation supporting both Maven and Gradle build systems.
## Vision: Cargo for Java
jbuild aims to be the **Cargo equivalent for Java** - a modern, fast, and user-friendly build system that provides:
- **Zero-config project creation** (`jbuild new`, `jbuild init`)
- **Unified dependency management** (like Cargo.toml for Java)
- **Fast incremental builds** with smart caching
- **Built-in tooling** (format, lint, doc, publish)
- **Modern developer experience** with helpful error messages
---
## Next Up 🎯 (Cargo-like Features)
### Project Scaffolding
- [x] **`jbuild new <name>`** - Create new Java project with standard layout
- [x] Generate pom.xml or build.gradle based on preference (`-b maven|gradle`)
- [x] Create src/main/java and src/test/java directories
- [x] Generate sample Main.java and MainTest.java
- [x] Support templates: `--template lib|app` (multi pending)
- [x] Generate .gitignore and README.md
- [x] **`jbuild init`** - Initialize jbuild in existing project
- [x] Detect existing source files and infer structure
- [x] Auto-detect main class from `public static void main`
- [x] Infer group ID from package names
- [x] Generate pom.xml or build.gradle with detected settings
- [x] Create standard directory structure if missing
### Unified Configuration (jbuild.toml)
- [x] **Native jbuild.toml format** - Simpler alternative to pom.xml/build.gradle
```toml
[package]
name = "my-app"
version = "1.0.0"
java = "17"
[dependencies]
"org.slf4j:slf4j-api" = "2.0.9"
"com.google.guava:guava" = "32.1.3-jre"
[dev-dependencies]
"org.junit.jupiter:junit-jupiter" = "5.10.0"
```
- [x] **jbuild.lock** - Lock file for reproducible builds
- [x] Auto-generate alongside jbuild.toml
- [x] Stores package name/version and deps/dev-deps
- [ ] **Workspace support** - Multi-project workspaces like Cargo workspaces
### Enhanced CLI Commands
- [x] **`jbuild add <dependency>`** - Add dependency to project
- [x] Parse groupId:artifactId:version format
- [x] Update pom.xml or build.gradle automatically
- [x] Support `--dev` flag for test dependencies
- [x] Auto-detect latest version from Maven Central
- [x] **`jbuild remove <dependency>`** - Remove dependency from project
- [x] Parse groupId:artifactId format
- [x] Remove from pom.xml or build.gradle
- [x] **`jbuild update`** - Update dependencies to latest compatible versions
- [x] Update all dependencies or specific dependency
- [x] Support both Maven and Gradle
- [x] Fetch latest versions from Maven Central
- [x] **`jbuild search <query>`** - Search Maven Central for packages
- [x] Query Maven Central Search API
- [x] Display package name, version, and update date
- [x] Configurable result limit (`-n`)
- [x] **`jbuild info <package>`** - Show package details and versions
- [x] Display latest version and update date
- [x] Show all available versions
- [x] **`jbuild tree`** - Display dependency tree (like `cargo tree`)
- [x] Parse pom.xml or build.gradle
- [x] Display direct dependencies with scope
- [x] Show transitive dependencies (downloads POMs to traverse)
- [x] **`jbuild outdated`** - Show outdated dependencies
- [x] Compare current versions with latest from Maven Central
- [x] Support both Maven and Gradle
- [ ] **`jbuild audit`** - Security vulnerability scanning
### Build & Run
- [x] **`jbuild run`** - Build and run main class (auto-detect or specify)
- [x] Auto-detect main class from source files
- [x] Extract main class from pom.xml/build.gradle configuration
- [x] Support --main-class flag to override
- [x] Build classpath for both Maven and Gradle
- [x] Support passing arguments to application
- [x] Auto-build project before running
- [ ] **`jbuild run --example <name>`** - Run example programs
- [x] **`jbuild watch`** - Watch mode with auto-rebuild on file changes
- [x] Watch source files for changes
- [x] Auto-rebuild on file changes with debouncing
- [x] Support --test flag to run tests on change
- [x] Configurable watch paths
- [x] Support both Maven and Gradle
- [ ] **`jbuild bench`** - Run JMH benchmarks
### Code Quality
- [ ] **`jbuild fmt`** - Format code (integrate google-java-format or similar)
- [x] **`jbuild lint`** - Run linters (Checkstyle integrated, SpotBugs/PMD pending)
- [x] Checkstyle integration with tree-sitter Java parser
- [x] 9 checks: EmptyCatchBlock, EmptyStatement, MissingSwitchDefault, MultipleVariableDeclarations, SimplifyBooleanReturn, PackageName, TypeName, RedundantImport, LineLength
- [x] XML configuration file support
- [x] Default configuration with common checks
- [ ] SpotBugs integration
- [ ] PMD integration
- [x] **`jbuild check`** - Check code without producing artifacts
- [x] Compile main and test sources without packaging
- [x] Support both Maven and Gradle
- [x] Maps to compile/test-compile phases for Maven
- [x] Maps to compileJava/compileTestJava tasks for Gradle
- [ ] **`jbuild fix`** - Auto-fix common issues
### Documentation
- [ ] **`jbuild doc`** - Generate Javadoc
- [ ] **`jbuild doc --open`** - Generate and open in browser
### Publishing
- [ ] **`jbuild publish`** - Publish to Maven Central or custom repository
- [ ] **`jbuild login`** - Authenticate with repository
- [ ] **`jbuild package`** - Create distributable package (uber-jar, native image)
### Developer Experience
- [x] **Colored output** - Pretty terminal output with colors
- [x] Color-coded messages (info, success, error, warn)
- [x] Auto-detection of TTY and CI environment
- [x] NO_COLOR environment variable support
- [x] **Progress bars** - Download and build progress indicators
- [x] Progress bar utilities for downloads
- [x] Spinner for build operations
- [x] Dependency resolution progress
- [ ] **Helpful error messages** - Rust-style error messages with suggestions
- [x] Basic colored error output
- [ ] Source code context in errors
- [ ] Actionable suggestions
- [x] **Shell completions** - Bash/Zsh/Fish completions
- [x] `jbuild completions <shell>` command
- [x] Support for bash, zsh, fish, powershell, elvish
- [ ] **`jbuild --explain <error>`** - Detailed error explanations
### Performance
- [ ] **Daemon mode** - Keep JVM warm for faster subsequent builds
- [ ] **Remote build cache** - Share build cache across machines
- [ ] **Native compilation** - GraalVM native-image support
---
## Completed ✅
### Maven Support
- [x] Complete POM XML parsing with namespace handling
- [x] Full dependency resolution algorithm with transitive dependencies (framework)
- [x] Build lifecycle execution (actual phase execution)
- [x] Settings file parsing
- [x] ProjectBuilder for building projects from POM files
- [x] LifecycleStarter for lifecycle execution
- [x] MojoExecutor for plugin execution
- [x] Reactor for multi-module project support
- [x] DefaultMaven execution engine
- [x] GraphBuilder for dependency graph construction
- [x] ModelBuilder for effective model construction
- [x] LifecycleExecutor with plugin bindings
- [x] **Remote repository artifact downloading** - HTTP client integration for artifact downloads
- [x] **Goal parsing and phase mapping** - Parse Maven goals and map to lifecycle phases
- [x] **Effective model building with parent resolution** - Build effective POM with parent inheritance
- [x] **Plugin loading and execution framework**
- [x] Load plugins from local/remote repositories
- [x] Plugin descriptor parsing from JAR files (META-INF/maven/plugin.xml)
- [x] PluginRegistry for plugin caching and management
- [x] Mojo execution with PluginRegistry integration
- [x] Plugin dependency resolution (from plugin POM)
- [x] Plugin classpath building (plugin JAR + dependencies)
- [x] Basic Java plugin execution framework (JavaMojo with classpath setup)
- [x] JNI integration for direct Java class loading (optional feature)
- [x] External Maven process invocation for plugin execution (fallback)
- [ ] Full JNI Mojo execution (requires Java helper classes for complete implementation)
### Common Infrastructure
- [x] **Enhanced remote repository features**
- [x] Repository metadata fetching
- [x] Artifact checksum verification
- [x] Download progress reporting
- [x] Retry logic for failed downloads
- [x] **Compiler integration (javac, etc.)**
- [x] Java compiler invocation
- [x] Compilation error handling
- [x] Source file discovery
- [x] Classpath management
- [ ] Annotation processing support
- [x] **Test execution support**
- [x] Test discovery (JUnit, TestNG, etc.)
- [x] Test runner integration
- [x] Test reporting
- [x] Test classpath setup
- [x] **Packaging (jar, war, etc.)**
- [x] JAR file creation
- [x] WAR file packaging
- [x] Manifest generation
- [x] Resource inclusion/exclusion
- [x] **Advanced dependency resolution**
- [x] Version range resolution
- [x] Conflict resolution
- [x] Optional dependencies
- [x] Exclusions handling
- [x] Dependency mediation
- [x] **Build optimization**
- [x] Incremental compilation (build cache framework)
- [x] Parallel execution (framework with tokio)
- [x] Build caching
- [ ] Reactor optimization (basic reactor exists, optimization pending)
## In Progress 🚧
### Gradle Support
- [x] Gradle build script parsing (Groovy DSL) - Basic parser implemented
- [x] Gradle build script parsing (Kotlin DSL) - Basic support (uses Groovy parser)
- [x] Gradle task execution framework - Core tasks (clean, compileJava, test, jar, build)
- [x] Gradle dependency resolution - Integrated with shared resolver
- [x] Gradle plugin system integration - Basic plugin detection and standard tasks
## Recent Improvements ✨
### Checkstyle Integration (Dec 2025)
- [x] **Merged checkstyle-rs** - Integrated Rust Checkstyle implementation:
- tree-sitter-java for fast Java parsing
- 9 checks: EmptyCatchBlock, EmptyStatement, MissingSwitchDefault, MultipleVariableDeclarations, SimplifyBooleanReturn, PackageName, TypeName, RedundantImport, LineLength
- `jbuild lint` command with file/directory support
- XML configuration file support
- Default configuration with common checks
- Checkstyle-compatible output format
- 169 checkstyle tests migrated
- 19 example Java files for testing
- [x] **Total: 469 Tests Passing** (200 unit + 169 checkstyle + 59 CLI commands + 41 integration)
### Gradle Migration from Gradle Source (Dec 2025)
- [x] **UnitOfWork Trait** - Implemented Gradle-inspired execution abstraction with:
- WorkIdentity for unique work identification
- InputFingerprint for caching and up-to-date checks
- WorkOutput for execution results
- ExecutionContext for work execution environment
- InputVisitor/OutputVisitor patterns for input/output discovery
- [x] **Settings.gradle Support** - Multi-project build support:
- GradleSettings model for settings.gradle parsing
- SubprojectConfig for subproject configuration
- include/includeFlat statement parsing
- rootProject.name parsing
- Multi-project task execution
- [x] **Thread Safety** - Added Send + Sync bounds to core traits:
- LocalRepository trait now Send + Sync
- Plugin trait now Send + Sync
- BuildExecutor implementations are thread-safe
- [x] **Gradle Dependency Resolution** - Integrated with shared Maven resolver
- [x] **Example Projects** - Created comprehensive examples:
- multi-module-maven/ - Multi-module Maven project (core, api, app)
- multi-module-gradle/ - Multi-module Gradle project (core, api, app)
- Java source files for each module
- [x] **Integration Tests** - Added 15 new tests for multi-module projects
- [x] **Documentation** - Updated README with:
- Comparison table: jbuild vs Maven vs Gradle
- Example project documentation
- Supported tasks/goals table
- [x] **Total: 148 Tests Passing** (107 unit + 11 example + 3 gradle + 15 multi-module + 12 unit)
### Additional Gradle Capabilities (Dec 2025)
- [x] **Task Graph** - Full task dependency graph implementation:
- TaskNode with dependencies and dependents
- TaskGraph with topological sort
- Circular dependency detection
- Up-to-date task tracking
- Standard Java task graph builder
- 8 new tests
- [x] **Configuration Model** - Gradle configuration system:
- Configuration with extends_from, consumable, resolvable
- ConfigurationDependency for GAV and project dependencies
- ConfigurationContainer with Java defaults (api, implementation, compileClasspath, etc.)
- Dependency resolution across extended configurations
- 6 new tests
- [x] **Source Sets** - Gradle source set model:
- SourceSet with java/resources directories
- Output directories for classes and resources
- Classpath configuration mapping
- SourceSetContainer with Java defaults (main, test)
- 5 new tests
- [x] **Total: 167 Tests Passing** (126 unit + 11 example + 3 gradle + 15 multi-module + 12 unit)
### Complete Gradle Implementation (Dec 2025)
- [x] **Version Catalogs** - Centralized dependency management:
- VersionCatalog with versions, libraries, plugins, bundles
- LibraryDeclaration with GAV and version references
- VersionSpec for literal and reference versions
- TOML parser for libs.versions.toml
- Bundle support for grouping libraries
- 6 new tests
- [x] **Java Toolchains** - JDK version management:
- JavaToolchain specification (version, vendor, implementation)
- JavaInstallation detection from JAVA_HOME and PATH
- Version parsing for old (1.8) and new (17) formats
- Vendor detection (OpenJDK, Oracle, Amazon, Azul, IBM, etc.)
- ToolchainResolver for finding matching installations
- 4 new tests
- [x] **Custom Tasks** - Full task action support:
- TaskAction enum (Copy, Delete, Exec, Mkdir, WriteFile, Custom)
- CustomTask with actions, inputs, outputs
- UnitOfWork implementation for custom tasks
- TaskRegistry for managing custom tasks
- Recursive directory copy
- 6 new tests
- [x] **Composite Builds** - Include external builds:
- IncludedBuild for external build references
- CompositeBuild for managing included builds
- Dependency substitution support
- includeBuild statement parsing
- 5 new tests
- [x] **Application Plugin** - Full implementation:
- ApplicationExtension with mainClass, JVM args
- Run task execution with classpath
- Start script generation (Unix and Windows)
- installDist task for distribution creation
- Main class detection from source files
- 3 new tests
- [x] **Total: 191 Tests Passing** (150 unit + 11 example + 3 gradle + 15 multi-module + 12 unit)
### Maven Migration from Maven Source (Dec 2025)
- [x] **Execution Plan** - Maven execution plan calculation:
- ExecutionPlanItem with plugin GAV, goal, phase binding
- MavenExecutionPlan with phase-based item lookup
- Default plugin bindings for each phase
- Plan calculation for target phases
- 5 new tests
- [x] **Reactor Build** - Multi-module reactor support:
- ReactorProject with status tracking
- ReactorBuildStatus with topological sort
- Build order calculation with dependency resolution
- Fail-fast and skip-downstream support
- ReactorSummary for build statistics
- 6 new tests
- [x] **Dependency Context** - Dependency scope management:
- DependencyScope enum (compile, provided, runtime, test, system, import)
- ResolvedDependency with file path and transitive deps
- DependencyContext with classpath generation
- Scope-based classpath filtering
- Exclusion pattern support
- 6 new tests
- [x] **Lifecycle Mapping** - Packaging-specific bindings:
- PluginBinding with convenience constructors
- LifecycleMapping for jar, war, pom, ear, ejb
- LifecycleMappingRegistry with defaults
- Phase ordering support
- 6 new tests
- [x] **Project Dependencies Resolver** - Resolution scopes:
- ResolutionScope (Compile, Runtime, Test, CompilePlusRuntime)
- DependencySpec with managed version support
- DependencyResolutionRequest with exclusions
- ProjectDependenciesResolver with local repo lookup
- 4 new tests
- [x] **Lifecycle Phase Enhancements**:
- order() method for phase ordering
- phases_up_to() for calculating execution phases
- [x] **Total: 218 Tests Passing** (177 unit + 11 example + 3 gradle + 15 multi-module + 12 unit)
### Maven/Gradle Compatibility (Dec 2025)
- [x] **Build Wrapper Support** - mvnw/gradlew detection:
- WrapperType enum (Maven, Gradle)
- BuildWrapper detection and execution
- Version extraction from wrapper properties
- Streaming execution support
- 3 new tests
- [x] **Goal/Task Mapping** - Cross-system compatibility:
- GoalMapper for Maven phases ↔ Gradle tasks
- Lifecycle phase detection
- Standard task detection
- Bidirectional conversion
- 5 new tests
- [x] **Dependency Notation Conversion**:
- DependencyCoordinates parsing (Gradle notation)
- Maven XML generation
- ScopeMapper (compile↔implementation, test↔testImplementation)
- GAV extraction
- 7 new tests
- [x] **Property Conversion**:
- PropertyConverter (Maven ↔ Gradle)
- Standard property mappings (compiler.source↔sourceCompatibility)
- Property interpolation for both formats
- 4 new tests
- [x] **Enhanced CLI**:
- --use-wrapper flag for wrapper support
- Trailing goals argument support
- Build and Run commands
- Automatic goal mapping for Gradle
- [x] **Total: 241 Tests Passing** (200 unit + 11 example + 3 gradle + 15 multi-module + 12 unit)
### DRY/KISS Architecture Improvements (Dec 2025)
- [x] **Shared Version Utilities** (`common/version.rs`):
- Centralized `compare_versions()` function
- Shared `version_key()` for sorting
- `is_snapshot()` and `base_version()` helpers
- Removed duplicate implementations from version_range.rs and conflict.rs
- [x] **DependencyCoordinates Consolidation**:
- Refactored to use `ArtifactCoordinates` internally
- Eliminated duplicate coordinate structures
- Added accessor methods for compatibility
- [x] **Test Deduplication**:
- Removed duplicate version comparison tests
- Centralized tests in common/version.rs
- Reduced test count while maintaining coverage
- [x] **Code Simplification**:
- Simplified version_range.rs (168→126 lines)
- Simplified conflict.rs (153→115 lines)
- Simplified advanced.rs (138→112 lines)
### Gradle Support Implementation (Nov 2025)
- [x] **Gradle Build Script Parser** - Implemented parser for Groovy/Kotlin DSL build scripts
- [x] **Gradle Model Structures** - Created GradleProject, Task, Dependency, Repository, Plugin models
- [x] **Gradle Task Execution** - Implemented task execution engine with dependency resolution
- [x] **Build System Integration** - Unified BuildExecutor trait for both Maven and Gradle
- [x] **Dependency Resolution** - Integrated Gradle dependencies with shared resolver
- [x] **Example Project** - Created example Gradle project for testing
- [x] **Tests** - Added basic tests for Gradle functionality
### Code Quality & Architecture (Nov 2025)
- [x] **Project Rename** - Renamed from mvn-rs to jbuild to reflect dual Maven/Gradle support
- [x] **Custom Error Types** - Created `MavenError` enum for better error handling
- [x] **Trait-Based Design** - Added traits for testability: `ProjectBuildStrategy`, `LifecycleExecutionStrategy`, `DependencyResolutionStrategy`, `ArtifactRepository`
- [x] **Builder Patterns** - Implemented `ExecutionRequestBuilder` for fluent API
- [x] **Testing Utilities** - Created `MockArtifactRepository`, `MockDependencyResolver`, `TestProjectBuilder`
- [x] **Unit Tests** - Added 12 comprehensive unit tests with mocks
- [x] **Snapshot Tests** - Added insta snapshot tests for complex outputs
- [x] **Documentation** - Updated README with testing guidelines and architecture patterns
## Pending 📋
### High Priority
- [x] **Gradle Build System Support**
- [x] Gradle build script parser (Groovy DSL) - Basic parser implemented
- [x] Gradle build script parser (Kotlin DSL) - Basic support
- [x] Gradle task graph construction - Task dependency resolution
- [x] Gradle task execution - Core tasks implemented
- [x] Gradle dependency resolution (using same artifact repository) - Integrated with shared resolver
- [x] Gradle plugin system - Basic plugin detection and standard tasks
- [x] Gradle settings.gradle support - Multi-project builds implemented
### Medium Priority
- [x] **Build System Detection**
- [x] Automatic detection of pom.xml vs build.gradle
- [x] Unified CLI interface for both systems
- [x] Cross-build system compatibility (Maven artifacts in Gradle, etc.) - Shared artifact repository
- [ ] **Enhanced Maven Features**
- [ ] Enhanced POM features
- [x] Profile activation logic
- [x] Property interpolation
- [x] Model validation
- [ ] Maven plugin compatibility
- [x] Plugin API compatibility layer
- [x] Plugin configuration inheritance
- [ ] Legacy plugin support (framework ready, specific legacy formats pending)
### Lower Priority
- [ ] **Performance Optimizations**
- [ ] Reactor optimization (basic reactor exists, optimization pending)
- [ ] Parallel dependency resolution
- [ ] Build cache improvements
- [ ] Incremental build improvements
- [ ] **Additional Features**
- [ ] Annotation processing support
- [ ] Multi-language support (Kotlin, Scala, etc.)
- [ ] Build tool migration utilities
## Gradle Capabilities Migration Status
| **Core Execution** | | |
| Task execution | ✅ | `GradleExecutor.execute_task()` |
| Task dependencies | ✅ | `TaskGraph` with topological sort |
| Task graph | ✅ | `task_graph.rs` with circular detection |
| Up-to-date checks | ✅ | `UnitOfWork` trait, `InputFingerprint` |
| Build cache | ✅ | `BuildCache` in `core/optimization.rs` |
| Incremental execution | ✅ | `InputVisitor`/`OutputVisitor` patterns |
| **Build Scripts** | | |
| Groovy DSL parsing | ✅ | `model/parser.rs` |
| Kotlin DSL parsing | ⚠️ | Uses Groovy parser (basic) |
| `plugins {}` block | ✅ | Plugin detection |
| `dependencies {}` block | ✅ | Dependency parsing |
| `repositories {}` block | ✅ | Repository parsing |
| `application {}` block | ✅ | Main class extraction |
| **Multi-Project** | | |
| `settings.gradle` | ✅ | `GradleSettings` model |
| `include` statements | ✅ | Subproject parsing |
| `includeFlat` | ✅ | Flat project structure |
| Composite builds | ✅ | `CompositeBuild`, `IncludedBuild` |
| **Dependency Management** | | |
| Configurations | ✅ | `Configuration`, `ConfigurationContainer` |
| Maven repository | ✅ | Shared resolver |
| Configuration extends | ✅ | `extends_from` support |
| Project dependencies | ✅ | `ConfigurationDependency.project()` |
| Version catalogs | ✅ | `VersionCatalog`, `libs.versions.toml` |
| Dependency substitution | ✅ | `CompositeBuild.substitute_dependency()` |
| **Source Sets** | | |
| Main source set | ✅ | `SourceSet::main()` |
| Test source set | ✅ | `SourceSet::test()` |
| Custom source sets | ✅ | `SourceSet::new()` |
| Source directories | ✅ | `java_src_dirs`, `resources_dirs` |
| **Tasks** | | |
| `clean` | ✅ | Implemented |
| `compileJava` | ✅ | Implemented |
| `compileTestJava` | ✅ | Implemented |
| `test` | ✅ | Implemented |
| `jar` | ✅ | Implemented |
| `build` | ✅ | Implemented |
| `run` | ✅ | `ApplicationPlugin.run()` |
| `installDist` | ✅ | `ApplicationPlugin.install_dist()` |
| Custom tasks | ✅ | `CustomTask` with `TaskAction` |
| **Plugins** | | |
| `java` plugin | ✅ | Standard tasks |
| `java-library` plugin | ✅ | API configuration |
| `application` plugin | ✅ | Full implementation |
| External plugins | ⚠️ | Framework ready |
| **Advanced Features** | | |
| Configuration cache | ❌ | Not implemented |
| Parallel execution | ✅ | Tokio async framework |
| Daemon mode | ❌ | Not implemented |
| Toolchains | ✅ | `JavaToolchain`, `ToolchainResolver` |
**Coverage:** 48/52 capabilities implemented (92%)
## Maven Capabilities Migration Status
| **POM Parsing** | | |
| XML parsing | ✅ | `model/parser.rs` |
| Namespace handling | ✅ | quick-xml with namespace support |
| Parent POM resolution | ✅ | `ModelBuilder` |
| Property interpolation | ✅ | `model/interpolation.rs` |
| Profile activation | ✅ | `model/profile_activator.rs` |
| Model validation | ✅ | `model/validator.rs` |
| **Lifecycle** | | |
| Default lifecycle | ✅ | `core/lifecycle.rs` |
| Clean lifecycle | ✅ | `LifecyclePhase::Clean` |
| Site lifecycle | ⚠️ | Partial |
| Phase ordering | ✅ | `LifecyclePhase::order()` |
| Lifecycle mapping | ✅ | `LifecycleMapping` for jar/war/pom/ear/ejb |
| **Execution** | | |
| Execution plan | ✅ | `MavenExecutionPlan`, `ExecutionPlanItem` |
| Goal parsing | ✅ | `core/goal_parser.rs` |
| Mojo execution | ✅ | `core/mojo_executor.rs` |
| Plugin loading | ✅ | `plugin_api/registry.rs` |
| External Maven fallback | ✅ | Process invocation |
| **Multi-Module** | | |
| Reactor | ✅ | `core/reactor.rs` |
| Reactor build status | ✅ | `ReactorBuildStatus`, `ReactorProject` |
| Build order | ✅ | Topological sort |
| Fail-fast | ✅ | `ReactorBuildStatus.fail_fast` |
| Skip downstream | ✅ | `skip_downstream()` |
| **Dependency Resolution** | | |
| Transitive dependencies | ✅ | `resolver/` module |
| Version ranges | ✅ | `resolver/advanced.rs` |
| Conflict resolution | ✅ | Nearest wins, highest version |
| Exclusions | ✅ | `DependencyContext.exclusions` |
| Scopes | ✅ | `DependencyScope` enum |
| Dependency context | ✅ | `DependencyContext` |
| Classpath generation | ✅ | `classpath_string()` |
| **Repository** | | |
| Local repository | ✅ | `artifact/repository.rs` |
| Remote repository | ✅ | HTTP client integration |
| Checksum verification | ✅ | SHA1/MD5 |
| Download retry | ✅ | Retry logic |
| **Compilation** | | |
| Java compiler | ✅ | `compiler/java_compiler.rs` |
| Source discovery | ✅ | Classpath builder |
| Error handling | ✅ | Compilation errors |
| **Testing** | | |
| Test discovery | ✅ | JUnit, TestNG |
| Test execution | ✅ | `testing/runner.rs` |
| Test reporting | ✅ | Test results |
| **Packaging** | | |
| JAR creation | ✅ | `packaging/` module |
| WAR creation | ✅ | WAR packaging |
| Manifest generation | ✅ | `packaging/manifest.rs` |
| **Settings** | | |
| settings.xml parsing | ✅ | `maven/settings/` |
| Server credentials | ✅ | Settings model |
| Mirror configuration | ✅ | Settings model |
**Coverage:** 52/54 capabilities implemented (96%)
## Notes
- All code is consolidated under `src/` in a single crate
- The Maven foundation is solid and ready for Gradle support implementation
- Shared artifact repository and dependency resolution will benefit both build systems
- Rust's performance advantages will provide faster builds compared to Java-based tools
- The architecture is designed to support multiple build systems through trait-based abstractions
## Contributing
When working on TODO items:
1. Update this file to mark items as completed
2. Add implementation details to MIGRATION.md
3. Update code documentation
4. Add tests where applicable
5. Ensure both Maven and Gradle compatibility where applicable