My Journey With Errai Framework

After a while with GWT, I decided to look at the Errai framework which is a framework for GWT.

The first thing I did was to clone the tutorial at https://github.com/errai/errai-tutorial. As I was a cool user of the Gradle build tool, I immediately converted the project into a Gradle project as the project was initially a maven project.

The command to convert to maven project which I ran was gradle init. The idea of the gradle init is to convert the pom.xml file into a build.gradle file. After that, I started encountering issues with running the maven tasks as gradle tasks.

The first issue was

Could not find method providedCompile() for arguments [{group=com.google.gwt, name=gwt-user, version=2.8.0}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

The first solution was to add to the build.gradle file.

configurations { providedCompile }

Next was the

Project ‘gwt’ not found in root project ‘errai-tutorial’.

This led to adding

buildscript {
    repositories {
        maven {
            url 'http://dl.bintray.com/steffenschaefer/maven'
        }
        mavenCentral()
    }
    dependencies {
        classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.1'
    }
}

And 

gwt {
    gwtVersion = "2.8.0"
    modules "org.jboss.errai.demo.App"
    minHeapSize = "512M"
    maxHeapSize = "4024M"
}

With these, I decided to run my gradle clean command. It passed successfully, then it was time to try gradle clean build superDev. It took some time before finishing as it had to download some dependencies.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *