public static BuildInfo create ( Properties properties ) { checkNotNull ( properties , "properties: null" ) ; return builder ( ) . setArtifactId ( checkNotNull ( properties . getProperty ( "project.artifactId" ) , "project.artifactId: null" ) ) . setGroupId ( checkNotNull ( properties . getProperty ( "project.groupId" ) , "project.groupId: null" ) ) . setRawProperties ( properties ) . setScmRevision ( checkNotNull ( properties . getProperty ( "git.commit.id" ) , "git.commit.id: null" ) ) . setVersion ( checkNotNull ( properties . getProperty ( "project.version" ) , "project.version: null" ) ) . setBuildDateTime ( Optional . ofNullable ( properties . getProperty ( "project.build.date" ) ) ) . build ( ) ; }
Create an instance using the given properties .