gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.53k stars 377 forks source link

Provide at least one sample that shows how to use Gradle with GWT #10028

Open niloc132 opened 2 weeks ago

niloc132 commented 2 weeks ago

Going by GWT's samples and documentation, no one uses Gradle. This clearly isn't true, but for existing Gradle users who want to add GWT to their projects, or existing GWT users that want to move to Gradle, better documentation and samples could improve this situation.

There are several Gradle plugins out there that support GWT, and while we shouldn't "pick a winner", the GWT project documentation and samples should demonstrate how Gradle can be used to build GWT projects. These can be used to encourage users to start their own projects in maintainable ways, and can be used for release testing.

Existing GWT+Gradle integration tools:

See also https://github.com/gwtproject/gwt/issues/10011.

zbynek commented 2 weeks ago

https://github.com/jiakuan/gwt-gradle-plugin - doesn't support org.gwtproject groupid

The 1.x version supports both groupIds since https://github.com/jiakuan/gwt-gradle-plugin/commit/8b71a07d65fa89c1f8b0f77f71a42707f385267d (does not use the BOM though)

The 2.x version (first non-alpha release 2.0.12 released just today) drops support for the old one.

niloc132 commented 2 weeks ago

Thanks @zbynek, looks like https://github.com/jiakuan/gwt-gradle-plugin/issues/63 should be closed then?

That same plugin also doesn't seem very "gradle-native", the https://github.com/jiakuan/gwt-gradle-plugin/issues/79 issue in particular makes me worry that I'm going to need to rebuild all of our downstream because GWT was forced to re-run. I can vouch that the de.esoco.gwt plugin doesn't have that problem.

jiakuan commented 6 days ago

https://github.com/jiakuan/gwt-gradle-plugin/issues/79 has been fixed in v2 Only changed files would trigger a GWT rebuild, currently tracking inputs are: