jbuild 0.1.2

High-performance Java build tool supporting Maven and Gradle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
# 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

| Gradle Capability | Status | jbuild Implementation |
|-------------------|--------|----------------------|
| **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` |

**Legend:** ✅ Implemented | ⚠️ Partial | ❌ Not implemented

**Coverage:** 48/52 capabilities implemented (92%)

## Maven Capabilities Migration Status

| Maven Capability | Status | jbuild Implementation |
|------------------|--------|----------------------|
| **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 |

**Legend:** ✅ Implemented | ⚠️ Partial | ❌ Not implemented

**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