Gradle: Using Eclipse

If you put

    apply plugin:'eclipse'

at the top of your build.gradle file you can run 'gradle eclipse' which will generate the Eclipse project files, including the .classpath.

If you want to change the source and target compatibility settings:

    eclipse {
      jdt {
        sourceCompatibility = 1.6
        targetCompatibility = 1.6
gradle gradle-eclipse

Edit on github
comments powered by Disqus
Click me