Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Jan 15:42
· 33 commits to main since this release
06e9cae

Added

ProtocolVersions Class Generation

  • New ProtocolVersions utility class - Provides compile-time constants for all supported protocol versions:
    // Instead of magic strings
    String version = ProtocolVersions.V1;
    
    // Check if version is supported
    if (ProtocolVersions.isSupported(versionId)) { ... }
    
    // Get all supported versions
    Set<String> versions = ProtocolVersions.supported();
    
    // Validate version (throws if unsupported)
    ProtocolVersions.requireSupported(versionId);
  • Configuration: generateProtocolVersions (default: true)

Parallel Generation

  • New parallel generation mode for improved build performance on large schemas:
    <configuration>
        <parallelGeneration>true</parallelGeneration>
        <generationThreads>4</generationThreads> <!-- 0 = auto -->
    </configuration>
  • Interfaces, abstract classes, and implementations are generated in parallel
  • Thread count auto-detected by default (number of available processors)