Ok!
That was my fault, I didn't have to resolve dependencies manually for a while. It was just a classpath problem (of a jar added manually because it's not available on maven)
I just had to follow the unresolved symbols causes chain until I found the dependency on // https://mvnrepository.com/artifact/com.google.gwt.google-apis/gwt-ajaxloader
compile group: 'com.google.gwt.google-apis', name: 'gwt-ajaxloader', version: '1.1.0' was not added
Sorry, this wasn't very useful in the forum (it's typically a beginner problem, but since gradle compiling and GWT 2.7 are new to me, I forgot my basics)
On Tuesday, October 25, 2016 at 10:05:19 PM UTC+1, Zied Hamdi wrote:
Hi,I have a series of interdependent GWT projects, all the chain works fine, but the last element seems to be unable to read java classes from the generated jar : I checked the jar, the .java and .class files are really there where they are supposed to be : it's amazing that the compiler finds the jar containing the wanted class but it doesn't read it (this is the case for many classes, see the pf file)
[ERROR] Errors in 'jar:file:/C:/Users/Zied%20Hamdi/git/VuMe/ShopAdmin/ build/libs/ShopAdmin-1.0.jar!/ fr/onevu/vume/shopadmin/ ShopAdmin.java'
[ERROR] fr.onevu.vume.shopadmin.ShopAdminClientFactory cannot be resolved to a typeThe project ShopAdmin is the first in the chain to have a src/main/java structure (all other projects are eclipse projects converted to gradle without changing the tree sutrcture). this might be a hint to understand the cause of the issue...
/*** app engine conf found on https://cloud.google.com/appengine/docs/java/tools/ gradle */group = 'fr.onevu.vume'version = '1.0'apply plugin: 'war'apply plugin: 'java'apply plugin: 'gwt'apply plugin: 'eclipse'apply plugin: 'jetty'apply plugin: 'com.google.cloud.tools.appengine' // App Engine tasks //Java version compatibility to use when compiling Java source.sourceCompatibility = 1.7//Java version to generate classes for.targetCompatibility = 1.7buildscript {repositories {jcenter() //repository where to fetch gwt gradle plugin}dependencies {classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6' classpath 'com.google.cloud.tools:appengine-gradle-plugin:+' // latest App Engine Gradle tasks }}// central repository to load the GWT libraryrepositories {maven {url 'https://maven-central.storage.googleapis.com ' // Google's mirror of Maven Central}jcenter()mavenCentral()}dependencies {compile group: 'com.google.appengine', name: 'gradle-appengine-plugin', version: '1.9.42'compile project(':VuMetest')// needed for Maps APIcompile group: 'com.google.gwt.google-apis', name: 'gwt-ajaxloader', version: '1.0.0'compile group: 'com.google.gwt', name: 'gwt-user', version: '2.7.0'compile fileTree(dir: 'libs', include: '*.jar')}gwt {gwtVersion='2.7.0'modules 'fr.onevu.vume.ShopAdmin'logLevel = 'ERROR'minHeapSize = "1024M";maxHeapSize = "2048M";superDev {noPrecompile=true}// The following is only needed if you don't use the Google Plugin for Eclipse.eclipse{addGwtContainer=true // Default set to true}//Specify the deployment PortjettyRunWar.httpPort = 8089}jar {manifest {attributes 'Implementation-Title': 'IntoGwt', 'Implementation-Version': version}from project.sourceSets.main.allJava from('src/main/java') {include '**/*.xml'include '**/*.css'include '**/*.png'include '**/*.properties'exclude '**JUnit**'}}
but the generated jar file has everything in place : the uncompresses jar contains the class there where it is supposed to be :
R‚pertoire de c:\temp\ShopAdmin-1.0\fr\onevu\vume\shopadmin 25/10/2016 22:00 <REP> .25/10/2016 22:00 <REP> ..25/10/2016 22:00 <REP> activity25/10/2016 22:00 <REP> activitymappers25/10/2016 21:43 856 ContentManager$1.class25/10/2016 21:43 1ÿ836 ContentManager.class23/09/2016 19:29 988 ContentManager.java25/10/2016 22:00 <REP> i18n25/10/2016 22:00 <REP> request25/10/2016 21:43 1ÿ225 ShopAdmin$1.class25/10/2016 21:43 1ÿ112 ShopAdmin$2.class25/10/2016 21:43 6ÿ486 ShopAdmin.class23/09/2016 19:29 5ÿ439 ShopAdmin.java25/10/2016 21:43 1ÿ488 ShopAdminActivityManager$1.class 25/10/2016 21:43 2ÿ907 ShopAdminActivityManager.class27/09/2016 12:59 1ÿ962 ShopAdminActivityManager.java25/10/2016 21:43 4ÿ466 ShopAdminClientFactory.class23/09/2016 19:29 2ÿ838 ShopAdminClientFactory.java25/10/2016 21:43 11ÿ472 ShopAdminClientFactoryImpl.class 23/09/2016 19:29 7ÿ249 ShopAdminClientFactoryImpl.java 25/10/2016 21:43 1ÿ638 ShopAdminEnvironment$1.class25/10/2016 21:43 7ÿ853 ShopAdminEnvironment.class23/09/2016 19:29 4ÿ060 ShopAdminEnvironment.java25/10/2016 21:43 1ÿ476 ShopAdminFacade.class23/09/2016 19:29 794 ShopAdminFacade.java25/10/2016 21:43 1ÿ426 ShopAdminPlaceController.class23/09/2016 19:29 1ÿ024 ShopAdminPlaceController.java25/10/2016 22:00 <REP> view21 fichier(s) 68ÿ595 octetsR‚pertoire de c:\temp\ShopAdmin-1.0\fr\onevu\vume\shopadmin\activity Any ideas?Best reagrds,Zied
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment