100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Improved GWT dependencies in gradle build
Christian Bauer856ae1d6d342
diff --git a/container/build.gradle b/container/build.gradleindex c22a4b983..2a9aece90 100644--- a/container/build.gradle+++ b/container/build.gradle@@ -5,7 +5,7 @@ dependencies {compile resolveProject(":model")- compile "org.codehaus.groovy:groovy-all:$groovyVersion"+ compile "org.codehaus.groovy:groovy:$groovyVersion"compile "org.slf4j:slf4j-api:$slf4jVersion"compile "org.slf4j:slf4j-jdk14:$slf4jVersion"diff --git a/gradle.properties b/gradle.propertiesindex 3a0f56d67..54b21050b 100644--- a/gradle.properties+++ b/gradle.properties@@ -17,7 +17,6 @@ resteasyVersion = 3.0.19.FinalkeycloakVersion = 2.1.0.FinalgwtVersion = 2.8.0ginVersion = 2.1.2-cglibVersion = 3.2.0gwtJacksonVersion = 0.14.1jacksonVersion = 2.7.4groovyVersion = 2.4.1diff --git a/manager/client/build.gradle b/manager/client/build.gradleindex d492548b9..6dee702f4 100644--- a/manager/client/build.gradle+++ b/manager/client/build.gradle@@ -3,17 +3,20 @@ evaluationDependsOn(resolveProject(":manager:shared").path)apply plugin: "java"apply plugin: "distribution"+configurations {+ gwtDev+}+dependencies {compile resolveProject(":manager:shared")compile "com.google.gwt:gwt-user:$gwtVersion"- compile "com.google.gwt:gwt-dev:$gwtVersion"- compile("com.google.gwt.inject:gin:$ginVersion") {- exclude module: "cglib"- }- compile "cglib:cglib:$cglibVersion"+ compile("com.google.gwt.inject:gin:$ginVersion")compile "com.github.nmorel.gwtjackson:gwt-jackson:$gwtJacksonVersion"++ // This is not on regular classpath, only used when compiling GWT/running codeserver+ gwtDev "com.google.gwt:gwt-dev:$gwtVersion"}def gwtOutputDir = "${project.buildDir}/gwt/out"@@ -24,7 +27,7 @@ def gwtLauncherDir = "${project.projectDir}/src/main/webapp/gwt"task compileGwt(dependsOn: classes, type: JavaExec) {- inputs.source sourceSets.main.java.srcDirs+ inputs.file(sourceSets.main.java.srcDirs).skipWhenEmpty()inputs.dir sourceSets.main.output.resourcesDiroutputs.dir gwtOutputDir@@ -34,7 +37,8 @@ task compileGwt(dependsOn: classes, type: JavaExec) {main = "com.google.gwt.dev.Compiler"classpath {- [sourceSets.main.java.srcDirs,+ [configurations.gwtDev,+ sourceSets.main.java.srcDirs,sourceSets.main.output.resourcesDir,sourceSets.main.output.classesDir,sourceSets.main.compileClasspath]@@ -93,7 +97,8 @@ task gwtSuperDev(dependsOn: classes, type: JavaExec) {main = "com.google.gwt.dev.codeserver.CodeServer"classpath {- [sourceSets.main.java.srcDirs,+ [configurations.gwtDev,+ sourceSets.main.java.srcDirs,sourceSets.main.output.resourcesDir,sourceSets.main.output.classesDir,sourceSets.main.compileClasspath]diff --git a/manager/test/build.gradle b/manager/test/build.gradleindex 2b11c50f5..3e8762775 100644--- a/manager/test/build.gradle+++ b/manager/test/build.gradle@@ -3,11 +3,27 @@ apply plugin: "groovy"dependencies {- compile "org.codehaus.groovy:groovy-all:$groovyVersion"+ compile "org.codehaus.groovy:groovy:$groovyVersion"compile resolveProject(":manager:server")compile resolveProject(":manager:client")+ // We must have this on the regular classpath because we do weird+ // things with GWT in tests, but without the transitive runtime+ // dependencies for code server+ compile("com.google.gwt:gwt-dev:$gwtVersion") {+ exclude group: "com.google.code.gson"+ exclude group: "org.ow2.asm"+ exclude group: "colt"+ exclude group: "ant"+ exclude group: "commons-collections"+ exclude group: "commons-io"+ exclude group: "com.ibm.icu"+ exclude group: "tapestry"+ exclude group: "net.sourceforge.htmlunit"+ exclude group: "org.eclipse.jetty"+ }+compile "junit:junit:$junitVersion"compile "org.spockframework:spock-core:$spockVersion"}