Git Product home page Git Product logo

Comments (4)

michael-newsrx avatar michael-newsrx commented on June 9, 2024 1

Here are the Gradle fragments we use for GWT. I've no idea how to do this with Maven. Maybe you'll see something we configure via Gradle that you can configure via Maven that might fix your issue.

settings.gradle

pluginManagement {
  plugins {
    id "org.docstr.gwt" version "1.1.21"
    id "org.gretty" version "3.0.8"
  }
}

build.gradle

plugins {
    id "idea"
    id "java"
    id "war"
    id "org.gretty"
    id "org.docstr.gwt"
}


java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_17
compileJava.options.encoding = 'UTF-8'
compileJava.options.release = 17
compileTestJava.options.encoding = 'UTF-8'
compileTestJava.options.release = 17
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.withSourcesJar()
jar {
    from sourceSets.main.allSource
    duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

repositories {
    mavenCentral()
    google()
    maven { url 'https://jitpack.io' }
}

tasks.withType(GwtSuperDev) {
    args "-style", "PRETTY", "-strict"
    jvmArgs "-Dgwt.watchFileChanges=false"
}

war {
    archiveName 'servlet.war'
    rootSpec.exclude('WEB-INF/classes/**/*.class')
}

gretty {
    httpPort = 8080
    servletContainer = 'tomcat9'
    contextPath = "servlet"
    extraResourceBase 'build/gwt/out'
}

gwt {
    src += files(compileJava.options.annotationProcessorGeneratedSourcesDirectory)
    logLevel = "INFO"
    maxHeapSize = "4096M"
    modules 'com.example.EntryPointClassName'
    compiler {
        disableClassMetadata = false
        strict = true
        style = "OBF"
    }

    devModules += 'com.example.EntryPointClassName'

    superDev {
        noPrecompile = true
        failOnError = true
        bindAddress = "0.0.0.0"
    }
}

More information about the GWT Gradle plugin can be found at: https://gwt-gradle-plugin.documentnode.io/

from gwt-material.

michael-newsrx avatar michael-newsrx commented on June 9, 2024

It seems to work fine with Gradle and JDK 17. So it really sounds like a build config issue.

from gwt-material.

Magallo avatar Magallo commented on June 9, 2024

Unfortunately I don’t know Gradle and I don’t know how I could configure a gwt-material project using it instead of Maven. Do you have some suggestions to solve this problem?

from gwt-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.