Class SpringBatchVersion

java.lang.Object
org.springframework.batch.core.SpringBatchVersion

public final class SpringBatchVersion extends Object
Class that exposes the Spring Batch version. Fetches the "Implementation-Version" manifest attribute from the jar file.

Note that some ClassLoaders do not expose the package metadata, hence this class might not be able to determine the Spring Batch version in all environments.

Since:
5.0
Author:
Mahmoud Ben Hassine
  • Field Details

    • BATCH_VERSION_KEY

      public static final String BATCH_VERSION_KEY
      The key to use in the execution context for batch version.
      See Also:
  • Method Details

    • getVersion

      @Nullable public static String getVersion()
      Return the full version string of the present Spring Batch codebase, or "N/A" if it cannot be determined.
      See Also: