Closed mmatloka closed 4 years ago
I noticed that last week but forgot to change it :slightly_smiling_face: thanks!
updated the instructions and bumped the version. please give it a try!
thanks :) probably we need to wait a few minutes, 0.5.6 is not shown yet in the repos.
I would propose to add also a line for 2.11 :)
Might I suggest a condition like scalaVersion.value.replaceFirst(raw"\.(\d)$$",".0$1") <= "2.12.04"
? Ugly regex magic, I know, but it should work for affected versions (i.e. 2.10.x
and up).
btw scalaVersion.value.split(".")
takes regexp as parameter, it should be e.g. scalaVersion.value.split("\\.")
, otherwise it produces empty list
There's also a char overload to avoid the escaping scalaVersion.value.split('.')
https://www.scala-lang.org/api/2.12.3/scala/collection/immutable/StringOps.html#split(separator:Char):Array[String]
Might I suggest a condition like
scalaVersion.value.replaceFirst(raw"\.(\d)$$",".0$1") <= "2.12.04"
? Ugly regex magic, I know, but it should work for affected versions (i.e.2.10.x
and up).
right, I forgot about the ancient times
now we're safe until 2.12.100 :slightly_smiling_face:
@mmatloka don't forget to close if you're satisfied!
thanks! :)
Hi, I have in the code the code from https://github.com/tek/splain#usage:
However it does not work for Scala 2.12.10 and 2.12.11. The code sample compares strings, so "1" is < "4" so it tries to use "0.4.1".
The problem appears explicitly on 2.12.11, because splain 0.4.1 was still released for 2.12.10.