Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

[GWT 2.8/Pluging 0.6] Issue with gwt sub-projects  #101

@hrstoyanov

Description

@hrstoyanov

Hello,
If my understanding from the war-using-library example is correct, if one has two projects like:

  • web-app (a war project)
  • web-shared (a jar library project)

Then in the war project gradle file (web-app/build.gradle), the shared library can be incorporated like this:

gwt { 
    modules     "${gwt_app_modules}"
    devModules  "${gwt_app_modules}"
    gwtVersion  "${gwt_version}"
    src       += files(project(':web-shared').sourceSets.main.allJava.srcDirs) + files(project(':web-shared').sourceSets.main.output.resourcesDir)
...
}

The problem I see is that the compiled classes from the library project do not go into web-app/build/classes, but are generated directly in the source tree of the war project: web-app/src/main/WEB-INF/classes, which is really bad!

It seems that I need to set some property in my web-app/build.gradle to tell it where to place the compile results from the imported library... Something like this (which does not work!):

gwt {

    modules     "${gwt_app_modules}"
    devModules  "${gwt_app_modules}"
    gwtVersion  "${gwt_version}"
    src       +=  <same as above>
    output = $projectDit/build
...
}

Any idea what is going on and how to fix it? Could this be GWT 2.8 issue?Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions