How ajoberstar/reckon works
Main Components
a) Core Components (reckon-core):
• Version Management System
• Version Parser/Writer
• Scope Calculator
• Stage Calculator
• VCS Inventory System
b) Gradle Integration (reckon-gradle):
• Gradle Plugin Components
• Settings Plugin
• Project Plugin (legacy)
• Extension Configuration
• Tasks System
Component Relationships
┌─────────────────────────────────────────────┐
• Gradle Build System │
• ┘
• ▲
┌─────────────────────────────────────────────┐
• Reckon Gradle Plugin │
• ┌─────────────┐ ┌─────────────────────┐ │
• Settings │ │ Tasks │ │
• Plugin │ │ - Tag Create │ │
• ┘ │ - Tag Push │ │
• ┌─────────────┐ └─────────────────────┘ │
• Extension │ ┌─────────────────────┐ │
• Configuration│ │ Project Plugin │ │
• ┘ │ (Legacy) │ │
• ┘ │
• ┘
• ▲
┌─────────────────────────────────────────────┐
• Reckon Core API │
• ┌─────────────┐ ┌─────────────────────┐ │
• Version │ │ VCS Inventory │ │
• Management │◄─┤ System │ │
• ┘ └─────────────────────┘ │
• ┌─────────────┐ ┌─────────────────────┐ │
• Scope │ │ Stage │ │
• Calculator │ │ Calculator │ │
• ┘ └─────────────────────┘ │
• ┘
• ▲
┌─────────────────────────────────────────────┐
• Git Repository │
• ┘
Important Details
a) Version Calculation Flow:
• How version information flows from Git through the core API to Gradle
• Where scope and stage calculations occur
• Where configuration options can influence the process
b) Plugin Integration Points:
• Settings plugin as the recommended integration point
• Legacy project plugin path
• Task dependencies and execution flow
Implementation Details
• The separation between core versioning logic and Gradle integration
• The plugin's ability to override project.version
• The relationship between Git tags and version calculation
• The configuration options available through the Gradle extension
Key Architectural Patterns
• Plugin architecture
• Separation of concerns between core and gradle modules
• Extensibility points for custom scope/stage calculations
• Demonstrate the event-driven nature of version calculation