Package org.nd4j.versioncheck
Class VersionCheck
- java.lang.Object
-
- org.nd4j.versioncheck.VersionCheck
-
public class VersionCheck extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionCheck.DetailDetailed level for logging: GAV: display group ID, artifact, version GAVC: display group ID, artifact, version, commit ID FULL: display group ID, artifact, version, commit ID, build time, branch, commit message
-
Field Summary
Fields Modifier and Type Field Description static StringGIT_PROPERTY_FILE_SUFFIXstatic StringVERSION_CHECK_PROPERTYDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckVersions()Perform a check of the versions of ND4J, DL4J, DataVec, RL4J and Arbiter dependencies, logging a warning if necessary.static List<VersionInfo>getVersionInfos()static List<URI>listGitPropertiesFiles()static voidlogVersionInfo()Log of the version information with the default level of detailstatic voidlogVersionInfo(VersionCheck.Detail detail)Log the version information with the specified level of detailstatic StringversionInfoString()static StringversionInfoString(VersionCheck.Detail detail)Get the version information for dependencies as a string with a specified amount of detail
-
-
-
Field Detail
-
VERSION_CHECK_PROPERTY
@Deprecated public static final String VERSION_CHECK_PROPERTY
Deprecated.- See Also:
- Constant Field Values
-
GIT_PROPERTY_FILE_SUFFIX
public static final String GIT_PROPERTY_FILE_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkVersions
public static void checkVersions()
Perform a check of the versions of ND4J, DL4J, DataVec, RL4J and Arbiter dependencies, logging a warning if necessary.
-
listGitPropertiesFiles
public static List<URI> listGitPropertiesFiles()
- Returns:
- A list of the property files containing the build/version info
-
getVersionInfos
public static List<VersionInfo> getVersionInfos()
- Returns:
- A list containing the information for the discovered dependencies
-
versionInfoString
public static String versionInfoString()
- Returns:
- A string representation of the version information, with the default (GAV) detail level
-
versionInfoString
public static String versionInfoString(VersionCheck.Detail detail)
Get the version information for dependencies as a string with a specified amount of detail- Parameters:
detail- Detail level for the version information. SeeVersionCheck.Detail- Returns:
- Version information, as a String
-
logVersionInfo
public static void logVersionInfo()
Log of the version information with the default level of detail
-
logVersionInfo
public static void logVersionInfo(VersionCheck.Detail detail)
Log the version information with the specified level of detail- Parameters:
detail- Level of detail for logging
-
-