类 VersionExtractor

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

public final class VersionExtractor extends Object
Extracts version information for a Class.
从以下版本开始:
2.3.0
作者:
Andy Wilkinson, Scott Frederick
  • 方法详细资料

    • forClass

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