Re: Using Gradle in an Apache Project

2014-06-19 Thread Ian Clelland
On Wed, Jun 18, 2014 at 7:19 PM, Carlos Santana wrote: > Joe what is the project structure that you don't like and think we should > not adopt? > http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Project-Structure The default Gradle Java/Android project structure is to have a `

Re: Using Gradle in an Apache Project

2014-06-18 Thread Joe Bowser
On Wed, Jun 18, 2014 at 4:19 PM, Carlos Santana wrote: > Joe what is the project structure that you don't like and think we should > not adopt? > This structure is totally different than what we currently tell people to use? How do we upgrade people? Moving around the files is a breaking change!

Re: Using Gradle in an Apache Project

2014-06-18 Thread Carlos Santana
Joe what is the project structure that you don't like and think we should not adopt? I'm trying to learn how to use gradle, since we have a project here that we want to align better with what most Android developers want to use. Here is what I tried out: *$ android create project -n FooName -t a

Re: Using Gradle in an Apache Project

2014-06-18 Thread Joe Bowser
Found it, it's located here: $ANDROID_SDK_PATH/tools/templates/gradle/wrapper On Wed, Jun 18, 2014 at 8:46 AM, Joe Bowser wrote: > Actually, it's not by default, but it does generate a gradle project > if you use the right flags. However, the project structure is > radically different that I'm n

Re: Using Gradle in an Apache Project

2014-06-18 Thread Joe Bowser
Actually, it's not by default, but it does generate a gradle project if you use the right flags. However, the project structure is radically different that I'm not sure we want to adopt it. Still, we can find where the JAR is and copy it out of the Android SDK directory. On Wed, Jun 18, 2014 at

Re: Using Gradle in an Apache Project

2014-06-18 Thread Joe Bowser
The Android Dev Tools generate a gradle project by default. Where does it store gradle-wrapper? On Wed, Jun 18, 2014 at 7:59 AM, Josh Soref wrote: > Ian Clelland wrote: >>But Gradle is a Java project, and so the script invokes Java, and makes >>use >>of a bundled .jar file, and therein lies the

Re: Using Gradle in an Apache Project

2014-06-18 Thread Josh Soref
Ian Clelland wrote: >But Gradle is a Java project, and so the script invokes Java, and makes >use >of a bundled .jar file, and therein lies the problem: We're not supposed >to >be including compiled JAR files in our repository. > >In this case, the .jar isn't actually part of our code; it's just us

Using Gradle in an Apache Project

2014-06-18 Thread Ian Clelland
I'm attempting to get cordova-android to build with Gradle, and I have generally been successful, but now that it's time to commit this into the repository, I think I've run into a conflict with Apache policies. In order to be as simple to use as possible, Gradle is usually run from a wrapper scri