Reputation: 47
Having an issue currently that I discovered after migrating our Java/Scala project to OpenJDK 11.0.1. Before migration, we were able to incrementally compile with sbt by running the following commands:
> sbt
> compile
Afterwards, running compile again in the shell would incrementally compile and basically finish instantly since it was entirely compiled. However, after migrating, it recompiles the whole project after re-entering the sbt console and compiling. However, inc. compilation still works if I don't exit out of sbt. Does anyone know what could be causing this issue?
I am using sbt v0.13.17 and scala version 2.11.12. which according to this are the minimum versions of Scala and sbt required for Java 11. Scala does say that they aren't officially compatible with Java 11 quite yet, but the outstanding bugs here don't have anything to do with SBT's incremental compiler
Upvotes: 3
Views: 1649
Reputation: 47
Found the problem. Looks like there was a bug introduced in SBT 0.13.17. This was fixed in 0.13.18 so I just upgraded the versions and everything works perfectly
Upvotes: 0