On 06/08/2015 03:22 PM, Michael Joyner wrote:
When using Eclipse + Gradle I noticed that GWT version is set to "Use default SDK ..."


Here is my current build.gradle file:

apply plugin: 'java'
apply plugin: 'gwt'
apply plugin: 'war'
apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
apply plugin: 'eclipse-wtp'

sourceCompatibility = 1.7
targetCompatibility = 1.7
compileJava.options.encoding = 'UTF-8'

// compileJava.options.bootClasspath='/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar'

version = '1.0'

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
        classpath 'org.akhikhl.gretty:gretty:+'
    }
}

war {
    archiveName 'TheWar.war'
}

gretty {
    port = 8080;
    servletContainer = 'tomcat7'
    managedClassReload = false
    extraResourceBase 'build/gwt/out'
}

repositories {
        mavenLocal()
        mavenCentral()
    }

compileJava {
    options.incremental = true
}


gwt {
    minHeapSize = "1024M";
    maxHeapSize = "2048M";

    gwtVersion='2.7.0'

    modules 'com.butterbusiness.ButterAdminModule'

    compiler {
        strict = true;
        enableClosureCompiler = false;
        disableClassMetadata = false;
        disableCastChecking = false;
    }
}

configurations {
  provided
}

dependencies {
    providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
    compile 'commons-validator:commons-validator:1.4.1'
    compile 'org.apache.commons:commons-lang3:3.4'
    compile 'com.mchange:c3p0:0.9.5'
    compile 'com.fasterxml.jackson.core:jackson-databind:2.5.3'
    compile 'mysql:mysql-connector-java:5.1.35'
}

sourceSets {
  main {
    compileClasspath += configurations.provided
  }
  test {
    compileClasspath += configurations.provided
    runtimeClasspath += configurations.provided
  }
}

eclipseJdt << {
    File f = file('.settings/org.eclipse.core.resources.prefs')
    f.write('eclipse.preferences.version=1\n')
    f.append('encoding/<project>=utf-8')
    f = file('.settings/org.eclipse.core.runtime.prefs')
    f.write('eclipse.preferences.version=1\n')
    f.append('line.separator=\\n\n')
}

eclipse {
    project {
        name = 'GWT Project'
        comment = 'GWT Project'
        webAppDirName = 'src/main/webapp'
    }
    classpath {
        plusConfigurations += [configurations.provided]
        noExportConfigurations += [configurations.provided]
    }
    jdt {
        sourceCompatibility=1.7
        targetCompatibility=1.7
    }
    wtp {
        facet {
            facets = []
            facet name: 'jst.java', version: '1.7'
            facet name: 'jst.web', version: '3.0'
        }
    }
}

--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to