forked from loafle/openapi-generator-original
added version checking to avoid runtime scala incompatibilities
This commit is contained in:
5
bin/Version.scala
Normal file
5
bin/Version.scala
Normal file
@@ -0,0 +1,5 @@
|
||||
val version = scala.util.Properties.scalaPropOrElse("version.number", "unknown").toString match {
|
||||
case "2.10.0" => "2.10"
|
||||
case e: String => e
|
||||
}
|
||||
println(version)
|
||||
Reference in New Issue
Block a user