Hi
I did that and here is the result. It seems that there is still a compatibility issue e.g. elementAdded(), elementRemoved() …
GWT Compiler args:
[-war, D:\Studio Projects\demo\gantt-demo\gantt-demo\modules\web-toolkit\build\gwt\widgetset, -strict, -style, OBF, -logLevel, INFO, -localWorkers, 3, -optimize, 9, com.company.ganttdemo.web.toolkit.ui.AppWidgetSet]
JVM Args:
[-Djava.awt.headless=true, -Xmx768m, -Xss8m]
May 05, 2017 1:23:52 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Compiling module com.company.ganttdemo.web.toolkit.ui.AppWidgetSet
Tracing compile failure path for type 'java.util.InternalJsHashCodeMap'
[ERROR] Errors in 'jar:file:/C:/Users/Mortoza/.gradle/caches/modules-2/files-2.1/com.vaadin.external.gwt/gwt-user/2.7.0.vaadin4/926666000e33edcc06604a6a19c65e9cfe7ca6df/gwt-user-2.7.0.vaadin4.jar!/com/google/gwt/emul/java/util/InternalJsHashCodeMap.java'
[ERROR] Line 120: The method elementAdded() is undefined for the type AbstractHashMap<K,V>
[ERROR] Line 137: The method elementRemoved() is undefined for the type AbstractHashMap<K,V>
Tracing compile failure path for type 'java.util.InternalJsStringMap'
[ERROR] Errors in 'jar:file:/C:/Users/Mortoza/.gradle/caches/modules-2/files-2.1/com.vaadin.external.gwt/gwt-user/2.7.0.vaadin4/926666000e33edcc06604a6a19c65e9cfe7ca6df/gwt-user-2.7.0.vaadin4.jar!/com/google/gwt/emul/java/util/InternalJsStringMap.java'
[ERROR] Line 154: The method elementAdded() is undefined for the type AbstractHashMap<K,V>
[ERROR] Line 166: The method elementRemoved() is undefined for the type AbstractHashMap<K,V>
[ERROR] Aborting compile due to errors in some input files
:app-web-toolkit:buildWidgetSet FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app-web-toolkit:buildWidgetSet'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_112\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 25.82 secs
[13:25:12.399] Task 'deploy, start' failed
org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_112\bin\java.exe'' finished with non-zero exit value 1
Here is my grade file
buildscript {
ext.cubaVersion = '6.5.0'
repositories {
maven {
url 'https://repo.cuba-platform.com/content/groups/work'
credentials {
username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
}
}
}
dependencies {
classpath "com.haulmont.gradle:cuba-plugin:$cubaVersion"
}
}
def globalModule = project(':app-global')
def webThemesModule= project(':app-web-themes')
def coreModule = project(':app-core')
def guiModule = project(':app-gui')
def webModule = project(':app-web')
def webToolkitModule = project(':app-web-toolkit')
def servletApi = 'org.apache.tomcat:tomcat-servlet-api:8.0.26'
apply(plugin: 'idea')
apply(plugin: 'cuba')
cuba {
artifact {
group = 'com.company.ganttdemo'
version = '0.1'
isSnapshot = true
}
tomcat {
dir = "$project.rootDir/build/tomcat"
}
ide {
copyright = '''Copyright (c) ${today.year} ${project.name}''' // Copyright Notice for IDEA project
classComment ='''/**
* @author ${USER}
*/'''
}
}
dependencies {
appComponent("com.haulmont.cuba:cuba-global:$cubaVersion")
}
def hsql = 'org.hsqldb:hsqldb:2.2.9'
configure([globalModule, coreModule, guiModule, webModule, webToolkitModule]) {
apply(plugin: 'java')
apply(plugin: 'maven')
apply(plugin: 'idea')
apply(plugin: 'cuba')
dependencies {
testCompile('junit:junit:4.12')
}
task sourceJar(type: Jar) {
from file('src')
classifier = 'sources'
}
artifacts {
archives sourceJar
}
}
configure(globalModule) {
dependencies {
}
task enhance(type: CubaEnhancing)
}
configure(webThemesModule) {
apply(plugin: 'java')
apply(plugin: 'maven')
apply(plugin: 'cuba')
appModuleType = 'web-themes'
buildDir = file('../build/scss-themes')
sourceSets {
main {
java {
srcDir '.'
}
resources {
srcDir '.'
}
}
}
}
configure(coreModule) {
configurations {
jdbc
dbscripts
}
dependencies {
compile(globalModule)
provided(servletApi)
jdbc(hsql)
testRuntime(hsql)
}
task cleanConf(description: 'Cleans up conf directory') << {
def dir = new File(cuba.tomcat.dir, '/conf/app-core')
if (dir.isDirectory()) {
ant.delete(includeemptydirs: true) {
fileset(dir: dir, includes: '**/*', excludes: 'local.app.properties')
}
}
}
task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
appName = 'app-core'
appJars('app-global', 'app-core')
}
task createDb(dependsOn: assembleDbScripts, description: 'Creates local database', type: CubaDbCreation) {
dbms = 'hsql'
dbmsVersion = 'null'
host = 'localhost'
dbName = 'demo'
dbUser = 'sa'
dbPassword = ''
}
task updateDb(dependsOn: assembleDbScripts, description: 'Updates local database', type: CubaDbUpdate) {
dbms = 'hsql'
dbmsVersion = 'null'
host = 'localhost'
dbName = 'demo'
dbUser = 'sa'
dbPassword = ''
}
}
configure(guiModule) {
dependencies {
compile(globalModule)
}
task deployConf(type: Copy) {
from file('src')
include "com/company/ganttdemo/**"
into "$cuba.tomcat.dir/conf/app"
}
}
configure(webModule) {
configurations {
webcontent
themes
}
dependencies {
provided(servletApi)
compile(guiModule)
compile('org.tltv.gantt:gantt-addon:0.9.5') {
exclude(group: 'com.vaadin', module: 'vaadin-client')
}
themes('org.tltv.gantt:gantt-addon:0.9.5') {
exclude(group: 'com.vaadin')
}
themes("com.haulmont.cuba:cuba-web-themes:$cubaVersion")
provided("com.haulmont.cuba:cuba-web-themes:$cubaVersion")
compile('org.tltv.gantt:gantt-addon:0.9.5')
}
jar {
with copySpec {
from sourceSets.main.allJava
include "com/company/ganttdemo/web/toolkit/ui/client/**"
}
}
task webArchive(type: Zip) {
from file('web')
classifier = 'web'
}
artifacts {
archives webArchive
}
task deployConf(type: Copy) {
from file('src')
include "com/company/ganttdemo/**"
into "$cuba.tomcat.dir/conf/app"
}
task clearMessagesCache(type: CubaClearMessagesCache) {
appName = 'app'
}
deployConf.dependsOn clearMessagesCache
task cleanConf(description: 'Cleans up conf directory') << {
def dir = new File(cuba.tomcat.dir, '/conf/app')
if (dir.isDirectory()) {
ant.delete(includeemptydirs: true) {
fileset(dir: dir, includes: '**/*', excludes: 'local.app.properties')
}
}
}
task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
appName = 'app'
appJars('app-global', 'app-gui', 'app-web')
}
task buildScssThemes(type: CubaWebScssThemeCreation)
task deployThemes(type: CubaDeployThemeTask, dependsOn: buildScssThemes)
assemble.dependsOn buildScssThemes
}
configure(webToolkitModule) {
dependencies {
compile(webModule)
runtime(servletApi)
}
jar {
from sourceSets.main.allJava
}
task buildWidgetSet(type: CubaWidgetSetBuilding) {
widgetSetClass = 'com.company.ganttdemo.web.toolkit.ui.AppWidgetSet'
}
task debugWidgetSet(type: CubaWidgetSetDebug) {
widgetSetClass = 'com.company.ganttdemo.web.toolkit.ui.AppWidgetSet'
}
task webArchive(dependsOn: buildWidgetSet, type: Zip) {
from file("$buildDir/web")
classifier = 'web'
}
artifacts {
archives webArchive
}
task deploy(dependsOn: buildWidgetSet) << {
delete {
"$cuba.tomcat.dir/webapps/app/VAADIN/widgetsets"
}
copy {
from "$buildDir/web"
into "$cuba.tomcat.dir/webapps/app"
exclude '**/gwt-unitCache/'
}
}
}
task undeploy(type: Delete, dependsOn: ':app-web:cleanConf') {
delete("$cuba.tomcat.dir/shared")
delete("$cuba.tomcat.dir/webapps/app-core")
delete("$cuba.tomcat.dir/webapps/app")
}
task restart(dependsOn: ['stop', ':app-core:deploy', ':app-web:deploy'], description: 'Redeploys applications and restarts local Tomcat') << {
ant.waitfor(maxwait: 6, maxwaitunit: 'second', checkevery: 2, checkeveryunit: 'second') {
not {
socket(server: 'localhost', port: '8787')
}
}
start.execute()
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
}
apply from: 'extra.gradle'