gwt-maven-archetypes icon indicating copy to clipboard operation
gwt-maven-archetypes copied to clipboard

Archetype for gwt-lib

Open TDesjardins opened this issue 3 years ago • 4 comments

Would be useful to have an archetype for creating GWT library projects (packaging gwt-lib).

TDesjardins avatar Jul 26 '22 12:07 TDesjardins

Do we really need an archetype for such a simple setup? → https://tbroyer.github.io/gwt-maven-plugin/usage.html

Do you have something else in mind?

(the archetypes here are about client/shared/server ; you'll note there's no archetype either for a gwt-app with no server side)

tbroyer avatar Jul 26 '22 12:07 tbroyer

Do you have something else in mind?

Nope, just a simple project setup. How you would create such project? Copy n' paste or by hand?

TDesjardins avatar Jul 26 '22 13:07 TDesjardins

That's what I would do personally, yes.

I could accept a PR but what would the archetype contain? only a pom.xml and module.gwt.xml? some Java code? what kind of code then?

What about "Java libraries with a GWT adapter" (think Guava + guava-gwt for example, or dagger + dagger-gwt), should there be an archetype for those too?

(the existing archetypes were quite easy as they simply adapted GWT's webAppCreator project to the Maven multi-module layout, and I then derived RequestFactory and Guice/Dagger variants)

tbroyer avatar Jul 26 '22 14:07 tbroyer

That's what I would do personally, yes.

Sounds like the cost-benefit ratio is insufficient from your point.

I could accept a PR but what would the archetype contain? only a pom.xml and module.gwt.xml? some Java code? what kind of code then?

Yes, only pom.xml and module.gwt.xml, no Java code.

What about "Java libraries with a GWT adapter" (think Guava + guava-gwt for example, or dagger + dagger-gwt), should there be an archetype for those too?

Nope.

TDesjardins avatar Jul 27 '22 12:07 TDesjardins