public static void logVersionInfo ( Detail detail ) { List < VersionInfo > info = getVersionInfos ( ) ; for ( VersionInfo grp : info ) { switch ( detail ) { case GAV : log . info ( "{} : {} : {}" , grp . getGroupId ( ) , grp . getArtifactId ( ) , grp . getBuildVersion ( ) ) ; break ; case GAVC : log . info ( "{} : {} : {} - {}" , grp . getGroupId ( ) , grp . getArtifactId ( ) , grp . getBuildVersion ( ) , grp . getCommitIdAbbrev ( ) ) ; break ; case FULL : log . info ( "{} : {} : {} - {}, buildTime={}, buildHost={} branch={}, commitMsg={}" , grp . getGroupId ( ) , grp . getArtifactId ( ) , grp . getBuildVersion ( ) , grp . getCommitId ( ) , grp . getBuildTime ( ) , grp . getBuildHost ( ) , grp . getBranch ( ) , grp . getCommitMessageShort ( ) ) ; break ; } } }
Log the version information with the specified level of detail