steffenschaefer / gwt-gradle-plugin

Gradle plugin to support GWT (http://www.gwtproject.org/) related tasks.
Other
117 stars 45 forks source link

gwt-gradle-plugin 0.4 dependency and repo url #21

Open eugene-mobile opened 10 years ago

eugene-mobile commented 10 years ago

Steffen: thanks for the plugin, but here are some issues I bumped into that could prevent people from seamlessly adopting it: In examples/build.gradle you list version 0.4 of your plugin in buildscript.dependencies. Even if I compile gradle plugin on local machine, I won't get that version. I changed plugin version to 0.3 but still got gradle complaining simply because buildscript.repositories.maven is pointing to rootProject.projectDir.parentFile.

So second change I had to add to build scripts is to change maven url to https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/

I might be missing something, but I think it would be easier for beginners if you have stable version (in that case 0.3) listed in build.gradle as well as your maven repo configured there by default.

Thanks for your hard work though! Plugin is really handy!

strootman commented 10 years ago

@eugene-mobile, small and easy changes like the one you suggested are prime for creating a pull request. I'm pretty sure that Steffen has a regular job, and would appreciate it.

I also have a regular job, but I've been meaning to get this plugin up and running in my own development environment so I can create more pull requests and contribute to this plugin.

There has been a lot of talk in the GWT community about how to update the source builds, and gradle has been mentioned quite a bit. I'm not sure when the next GWT community hangout will be, but I most likely be making a presentation about my organization's migration to gradle.

So, FYI @steffenschaefer, I'll be mentioning this plugin since it has been so crucial!!!

strootman commented 10 years ago

@steffenschaefer, if you have any pointers/references for getting a dev environment set up, please pass it along :)

steffenschaefer commented 10 years ago

The examples are wired against the latest development version (currently 0.4-SNAPSHOT). As you already discovered, this version cant' be found in the maven repo committed to GitHub. This version has to be built locally during development.

To make the examples work, you only have to call "gradle publish" or "gradlew publish" in the root folder of the git repository. This will build the snapshots and put them to the right place for the example projects (git-ignored folder named "repo" in the root of the Git repository). After that, the example projects should simply be buildable without any local change.

eugene-mobile commented 10 years ago

@strootman I completely agree: the plugin is extremely crucial, especially now when whole community is transitioning to super-dev mode.

Thanks for pointing out that my suggestion should be a pull request. I wasn't sure what to do as I haven't been contributing to any open-source project yet. Hopefully I can bring something valuable to the community.