How can I tell what directory my build is in?


(ngalarneau) #1

How can I tell what directory my root build.gradle is in?

I need to produce an absolute path for certain reasons & the source tree can be checked out in different places by developers.


(Gary Hale) #2

How about rootProject.buildscript.sourceFile.parent?


(Peter Niederwieser) #3
println rootDir

(ngalarneau) #4

Thanks guys!