Why does gradle play plugin requires org.scala-sbt:io_2.11:0.13.8 jar

plugins

(Chris L) #1

Anyone knows that for gradle play build, why do we need a sbt ivy repo?

ivy {
    name "typesafe-ivy-release"
    url "https://repo.typesafe.com/typesafe/ivy-releases"
    layout "ivy"
}   

My understandings after talking to lightbend (former typesafe), that this ivy is for SBT build only. However, if I remove this ivy repo in the gradle build file, I am seeing this:

$ ./gradlew clean dist

:createPlayBinaryDistributionJar

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':playRun'.
> Could not find org.scala-sbt:io_2.11:0.13.8.
  Searched in the following locations:
  https://jcenter.bintray.com/org/scala-sbt/io_2.11/0.13.8/io_2.11-0.13.8.pom
  https://jcenter.bintray.com/org/scala-sbt/io_2.11/0.13.8/io_2.11-0.13.8.jar
  https://repo.typesafe.com/typesafe/maven-releases/org/scala-sbt/io_2.11/0.13.8/io_2.11-0.13.8.pom
  https://repo.typesafe.com/typesafe/maven-releases/org/scala-sbt/io_2.11/0.13.8/io_2.11-0.13.8.jar

My question, is first is this jar really needed? If not, how can I make the gradle build successfully without the ivy repo?

Thanks

CL


(Mahesh Kelkar) #2

@kknd22: did you figure out answer to this?