
snunit.plugin.internal.BuildInfo.scala Maven / Gradle / Ivy
The newest version!
package snunit.plugin.internal
object BuildInfo {
private val buildInfoProperties: java.util.Properties = new java.util.Properties()
{
val buildInfoInputStream = getClass
.getResourceAsStream("BuildInfo.buildinfo.properties")
if(buildInfoInputStream == null)
throw new RuntimeException("Could not load resource BuildInfo.buildinfo.properties")
else try {
buildInfoProperties.load(buildInfoInputStream)
} finally {
buildInfoInputStream.close()
}
}
val snunitVersion = buildInfoProperties.getProperty("snunitVersion")
}