Gradle as Java Lib


(akhil shastri) #1

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


(akhil shastri) #2

Got the answer…

it’s tooling API

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