Tuesday, October 25, 2016

Gradle compile with 2.7 fails

Hi,

I have an issue when trying to compile with gradle a GWT 2.7.0 version (I can't use GWT 2.8.0 since it requires Java8, which is still not supported by GAE)

I have the following error :

...
:VuMetest:compileJava
:VuMetest:compileJava - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:VuMetest:processResources UP-TO-DATE
:VuMetest:classes
:VuMetest:compileGwt
Loading inherited module 'fr.onevu.vume.ShopAdmin'
   
Loading inherited module 'com.google.gwt.user.User'
     
Loading inherited module 'com.google.gwt.core.Core'
         
Loading inherited module 'com.google.gwt.core.CompilerParameters'
           
[ERROR] Element 'module' beginning on line 17 contains unexpected attribute 'type'
           
[ERROR] Failure while parsing XML
com
.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
        at com
.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedAttribute(DefaultSchema.java:68)
        at com
.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:80)



I found a similar error here https://groups.google.com/forum/#!topic/google-web-toolkit/18hhCitwKFE but I don't know what can be wrong with my conf

Here's my build.gradle

/**
 * 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.7


buildscript
{
 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 library
repositories
{
    maven
{
 url
'https://maven-central.storage.googleapis.com'             // Google's mirror of Maven Central
 
//   url 'https://oss.sonatype.org/content/repositories/snapshots' // SNAPSHOT Repository (if needed)
 
}


 jcenter
()
 mavenCentral
()
}


dependencies
{
 
// https://mvnrepository.com/artifact/com.google.appengine/gradle-appengine-plugin
 compile
group: 'com.google.appengine', name: 'gradle-appengine-plugin', version: '1.9.42'
 compile project
(':Deps')
 compile project
(':Gwoto')
 compile project
(':IntoGwt')
 compile
'com.github.branflake2267:gwt-maps-api:3.10.0-alpha-7'
 
// https://mvnrepository.com/artifact/com.google.gwt/gwt-user
 compile
group: 'com.google.gwt', name: 'gwt-user', version: '2.7.0'
 
 compile fileTree
(dir: 'libs', include: '*.jar')
}


appengine
{  // App Engine tasks configuration


  deploy
{   // deploy configuration
    stopPreviousVersion
= true  // default - stop the current version
    promote
= true              // default - & make this the current version
 
}
}




task wrapper
(type: Wrapper) {
    gradleVersion
= '3.1'
}


compileJava
{
    options
.encoding = 'UTF-8'
 
//enable incremental compilation
 options
.incremental = true
}


gwt
{
 gwtVersion
='2.7.0'
 modules
'fr.onevu.vume.Customer'
 
 sourceSets
{
 main
{
 java
{
 srcDir
'src'
 
}
 
}
 
}
 
 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 Port
 jettyRunWar
.httpPort = 8089
}


Thanks for your help!

Best regards,
Zied Hamdi

--
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