File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
common/src/main/scala/it/agilelab/darwin/common Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1616 ~/.ivy2/cache
1717 ~/.sbt
1818 key : ${{ runner.os }}-sbt
19- - uses : olafurpg/setup-scala@v10
19+ - uses : olafurpg/setup-scala@v13
20+ with :
21+ java-version : graalvm-ce-java8@21.1.0
2022 - uses : olafurpg/setup-gpg@v3
2123 - run : ./make.sh
2224 - run : ./publish.sh
Original file line number Diff line number Diff line change @@ -16,9 +16,13 @@ object JavaVersion {
1616 def parseJavaVersion (propertyValue : String ): Int = {
1717 val splits = propertyValue.split(" \\ ." )
1818 if (propertyValue.startsWith(" 1." )) {
19- splits(1 ).toInt
19+ splits(1 ).takeWhile(isDigit). toInt
2020 } else {
21- splits(0 ).toInt
21+ splits(0 ).takeWhile(isDigit). toInt
2222 }
2323 }
24+ private val digits = ('0' to '9' ).toSet
25+ private def isDigit (c : Char ): Boolean = {
26+ digits.contains(c)
27+ }
2428}
Original file line number Diff line number Diff line change 1- sbt.version = 1.5.5
1+ sbt.version = 1.6.1
You can’t perform that action at this time.
0 commit comments