Move Android and ML build artefacts to their own subdirectory

Works around #20380.
This commit is contained in:
Anthony Ramine 2018-11-27 13:26:38 +01:00
parent 524bd722ef
commit 496a62860e
10 changed files with 51 additions and 47 deletions

View file

@ -14,7 +14,7 @@ allprojects {
repositories {
jcenter()
flatDir {
dirs rootDir.absolutePath + "/../../../target/android_aar"
dirs rootDir.absolutePath + "/../../../target/android/aar"
}
google()
}
@ -23,7 +23,7 @@ allprojects {
// Utility methods
String getTargetDir(boolean debug, String arch) {
def basePath = project.rootDir.getParentFile().getParentFile().getParentFile().absolutePath
return basePath + '/target/' + getSubTargetDir(debug, arch)
return basePath + '/target/android/' + getSubTargetDir(debug, arch)
}
String getSubTargetDir(boolean debug, String arch) {

View file

@ -7,7 +7,7 @@ android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
buildDir = rootDir.absolutePath + "/../../../target/gradle/servoapp"
buildDir = rootDir.absolutePath + "/../../../target/android/gradle/servoapp"
defaultConfig {
applicationId "org.mozilla.servo"

View file

@ -8,7 +8,7 @@ android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
buildDir = rootDir.absolutePath + "/../../../target/gradle/servoview"
buildDir = rootDir.absolutePath + "/../../../target/android/gradle/servoview"
defaultConfig {
minSdkVersion 18