2

I have a project that used SBT before, I'm trying to compile it using gradle with scala plugin, but have got an exception as below:

[ant:scalac] scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.

According to internet it's an issue with scala/zinc version incompatibility. This project has scala 2.11 dependencies (and been built with scala library 2.11 before), so I've tried to add explicitly proper scala and zinc versions to dependencies (in various combinations), but results are the same.

dependencies {
    zinc 'com.typesafe.zinc:zinc:0.3.9'
    compile 'org.scala-lang:scala-library:2.11.6'

Any suggestions?

vvg
  • 6,325
  • 19
  • 36

1 Answers1

1

There was another error message, which I missed initially:

[ant:scalac] error: error while loading <root>, Error accessing ... activation\1.0.2\48d628027388ba84af265623c1434a70
bffdc175\activation-1.0.2.jar

Excluding this artifact from build resolved the issue:

    exclude group: 'activation', module: 'activation'
Christian Neverdal
  • 5,655
  • 6
  • 38
  • 93
vvg
  • 6,325
  • 19
  • 36