Menu

Home

Geir Sande

Welcome to my-gradle-build wiki!

my-gradle-build requires you to create buildSrc project under the root project.

Download latest my-gradle-build release from the downloads.
Create 'lib' and 'lib-sources' -directories under buildSrc -directory and copy jars accordingly.

Start with creating build.gradle for buildSrc, see https://sourceforge.net/p/mygradlebuild/code/HEAD/tree/trunk/my-gradle-build/how-to/buildSrc/build.gradle

This gives you dependencies both for gradle jars and my-gradle-build jars, including their source jars.

In your root build.gradle, you would do something like this:

https://sourceforge.net/p/mygradlebuild/code/HEAD/tree/trunk/my-gradle-build/how-to/root-project/build.gradle

So the root build.gradle will point to your application specific .gradle file, just like this:
https://sourceforge.net/p/mygradlebuild/code/HEAD/tree/trunk/my-gradle-build/how-to/buildSrc/plugins/your-application.gradle

Putting a couple of application specific task + plugin gives you the final touch, see:

https://sourceforge.net/p/mygradlebuild/code/HEAD/tree/trunk/my-gradle-build/how-to/buildSrc/src/main/groovy/

Project Admins: