I'm looking into this now; as far as I understood the wrapping process, the files that were checked into git should have been sufficient to download gradle and all of its dependencies. Obviously something is missing, though. I'll let you know as soon as I figure out which piece it is.
Ian On Tue, Jun 17, 2014 at 7:19 PM, Joe Bowser <[email protected]> wrote: > I'm getting the following error: > Error: Could not find or load main class > org.gradle.wrapper.GradleWrapperMain > > Searching for this error tells me that I need the GradleWrapper JAR > file. I'm not sure where we'd get this file from, but it seems > required for this to work. > > On Tue, Jun 17, 2014 at 2:39 PM, Ian Clelland <[email protected]> > wrote: > > ... and as Joe noticed, I managed to commit all of this locally, and push > > none of it. > > > > That's fixed; things should work better now. > > > > Ian > > > > > > On Tue, Jun 17, 2014 at 9:29 AM, Ian Clelland <[email protected]> > > wrote: > > > >> I've been playing with Gradle builds for Cordova Android, and have > managed > >> to put together an initial working build system, which I've committted > in > >> the 4.0.x branch. > >> > >> If anyone wants to test it out, check out and build a project with that > >> branch. Then, from the platforms/android dir, just run > >> > >> ./gradlew build > >> > >> (You may have to set your JAVA_HOME directory; I usually just prefix the > >> command, and run it like > >> > >> JAVA_HOME=`/usr/libexec/java_home` ./gradlew build > >> ) > >> > >> gradlew is a wrapper script, which on first run will download all of the > >> bits that are needed. Subsequent runs will be faster and not require > >> network access. Eventually this command would be the one run by the > build > >> scripts. > >> > >> My next step is to get is to get it working with Crosswalk as well -- I > >> have it working locally (and assembling architecture-specific APKs!), > but > >> it required some changes to the Crosswalk engine plugin before it would > >> build. > >> > >> If anyone wants to try it out, feedback is welcomed. > >> > >> Thanks, > >> Ian > >> >
