mobile/android/gradle/build.gradle
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Thu, 26 Nov 2015 23:40:19 -0800
changeset 238856 4381c4b69b9c2b5ac8518edee94695aa523f62a6
parent 221117 8b881bea204add0f733100601dc136be1698ac87
permissions -rw-r--r--
Bumping manifests a=b2g-bump

allprojects {
    // Expose the per-object-directory configuration to all projects.
    ext {
        mozconfig = gradle.mozconfig
        topsrcdir = gradle.mozconfig.topsrcdir
        topobjdir = gradle.mozconfig.topobjdir
    }
}

buildDir "${topobjdir}/mobile/android/gradle/build"

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        // IntelliJ 14.0.2 wants 0.14.4; Android Studio wants 1.0.0.
        classpath 'com.android.tools.build:gradle:[0.14.4,1.0.0]'
    }
}

repositories {
    jcenter()
}

subprojects {
    task generateCodeAndResources(type:Exec) {
        workingDir "${topobjdir}"

        commandLine "${topsrcdir}/mach"
        args 'build'
        args 'mobile/android/base/gradle-targets'
    }
}