I would love to use this library with some models we have in the PMML format, but unfortunately I'm dealing with some old code bases that still use Scala 2.10 in a couple of places. As a result, in order to use the library I needed to add support to build the PMML4S project for Scala 2.10.
This primarily just affects the build.sbt file. Since the scala-xml library was split from the standard library starting in Scala 2.11, I had to add a small branch in the dependencies to support just using the standard library in Scala 2.10.
Unfortunately, one other change was needed to support Scala 2.10. The contains method wasn't added to the Option class until 2.11. There was one usage of this in the library that I had to change to a match statement instead. Everything else compiled in Scala 2.10 without any issues, and the unit tests all still passed when running sbt test.
I would love to use this library with some models we have in the PMML format, but unfortunately I'm dealing with some old code bases that still use Scala 2.10 in a couple of places. As a result, in order to use the library I needed to add support to build the PMML4S project for Scala 2.10.
This primarily just affects the
build.sbt
file. Since thescala-xml
library was split from the standard library starting in Scala 2.11, I had to add a small branch in the dependencies to support just using the standard library in Scala 2.10.Unfortunately, one other change was needed to support Scala 2.10. The
contains
method wasn't added to theOption
class until 2.11. There was one usage of this in the library that I had to change to amatch
statement instead. Everything else compiled in Scala 2.10 without any issues, and the unit tests all still passed when runningsbt test
.Let me know if you need any other details.