Gradle Scala Plugin - how to specify zincClasspath

前端 未结 2 1169
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 14:27

I am trying to use the Scala plugin with Gradle to build my project on an Ubuntu VM. This is what my build.gradle file looks like:

apply plugin: \'scala\'
re         


        
相关标签:
2条回答
  • 2021-01-18 15:00

    Fixed this myself in the end, the clue was that it was running on my Local machine but not my VM... of course my Gradle version was different.

    Upgrading to Gradle 3.0 fixed this

    0 讨论(0)
  • 2021-01-18 15:24

    I ran into this issue again recently, adding the following to my Gradle build script seemed to fix it:

    ScalaCompileOptions.metaClass.daemonServer = true
    ScalaCompileOptions.metaClass.fork = true
    ScalaCompileOptions.metaClass.useAnt = false
    ScalaCompileOptions.metaClass.useCompileDaemon = false
    
    0 讨论(0)
提交回复
热议问题