You can use the built-in projectDir
property of any project to build an absolute path relative to one of your projects, assuming that all your projects participate in the same multi-project build.
So if you have a build.gradle
file at the top-level abc
directory, that would probably look something like this (based on your comment above):
//"project" here equates to the root project, i.e. "abc"
def frameworkCore = "${project.projectDir}/abc-framework/abc-framework-core/lib"
def frameworkDeps = "${project.projectDir}/abc-framework/abc-framework-dependencies/lib"
subprojects {
dependencies {
compile fileTree(dir: frameworkCore, includes: ['*.jar'])
compile fileTree(dir: frameworkDeps, includes: ['*.jar'])
}
}