Skip to content

Commit 3960496

Browse files
committed
Removing apache commons dependency in an attempt to resolve the major.minor version error.
1 parent dc8e02a commit 3960496

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ resolvers += Opts.resolver.sonatypeReleases
2323
libraryDependencies ++= Seq(
2424
"org.specs2" %% "specs2-core" % "3.7.1" % "test",
2525
"org.specs2" %% "specs2-scalacheck" % "3.7.1" % "test",
26-
"org.scalacheck" %% "scalacheck" % "1.12.5" % "test",
27-
"org.apache.commons" % "commons-lang3" % "3.3.2" % "test"
26+
"org.scalacheck" %% "scalacheck" % "1.12.5" % "test"
2827
)
2928

3029
(scalacOptions in doc) ++= Seq("-doc-title", name.value + " " + version.value)

src/test/scala/spray/json/StandardFormatsSpec.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
package spray.json
1818

19-
import org.apache.commons.lang3.RandomStringUtils._
2019
import org.specs2.mutable._
21-
import scala.Right
2220
import scala.util.Random._
2321

2422
class StandardFormatsSpec extends Specification with DefaultJsonProtocol {
2523

26-
def nextString = randomAlphanumeric( nextInt( 16 ) + 1 )
24+
def nextString = new String( (alphanumeric take (nextInt( 16 ) + 1)).toArray )
2725

2826
"The optionFormat" should {
2927
"convert None to JsNull" in {

src/test/scala/spray/json/TriptionSpec.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package spray.json
22

33
import java.util.NoSuchElementException
44

5-
import org.apache.commons.lang3.RandomStringUtils._
65
import org.specs2.mutable._
76

87
import scala.util.Random._
@@ -12,7 +11,7 @@ import scala.util.Random._
1211
*/
1312
class TriptionSpec extends Specification
1413
{
15-
def nextString = randomAlphanumeric( nextInt( 16 ) + 1 )
14+
def nextString = new String( (alphanumeric take (nextInt( 16 ) + 1)).toArray )
1615

1716
"Basic monadic and helper function should work work:" should
1817
{

0 commit comments

Comments
 (0)