openapi-generator/bin/Version.scala

5 lines
164 B
Scala

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