openapi-generator/bin/Version.scala
2014-07-18 09:52:53 -06:00

9 lines
243 B
Scala

val version = scala.util.Properties.scalaPropOrElse("version.number", "unknown").toString match {
case "2.10.0" => "2.10"
case "2.10.2" => "2.10"
case "2.10.3" => "2.10"
case "2.10.4" => "2.10"
case e: String => e
}
println(version)