Class VersionExtractor

java.lang.Object
org.springframework.boot.gradle.util.VersionExtractor

public final class VersionExtractor extends Object
Extracts version information for a Class.
Since:
2.3.0
Author:
Andy Wilkinson, Scott Frederick
  • Method Details

    • forClass

      public static String forClass(Class<?> cls)
      Return the version information for the provided Class.
      Parameters:
      cls - the Class to retrieve the version for
      Returns:
      the version, or null if a version can not be extracted