Gradle as Java Lib

Hi All,

I am new to Gradle and as per my knowledge I can maintain the dependencies,compile code,Run Tests and build the jar on command prompt.

But I want to automate Gradle Build System with my Java Code, How can I use java to say Gradle to compile/test/build a Project …?

Regards, Akhil

Got the answer…

it’s tooling API

http://www.gradle.org/docs/current/userguide/embedding.html#sec:embedding_introduction