You probably want Project.file(Object). Eg
File file1 = file('path/to/file1')
File file2 = rootProject.file('path/to/file2')
println "$file1.absolutePath $file2.absolutePath"
You probably want Project.file(Object). Eg
File file1 = file('path/to/file1')
File file2 = rootProject.file('path/to/file2')
println "$file1.absolutePath $file2.absolutePath"