build.gradle 1.04 KB
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1 2 3 4
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
buildscript {
    repositories {
7
        google()
8 9 10 11 12 13 14
        mavenCentral()
        // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338
        jcenter {
            content {
                includeModule("org.jetbrains.trove4j", "trove4j")
            }
        }
15 16 17
    }

    dependencies {
18
        classpath 'com.android.tools.build:gradle:4.1.0'
19 20 21 22 23
    }
}

allprojects {
    repositories {
24
        google()
25 26 27 28 29 30 31
        mavenCentral()
        // TODO(jmagman): Remove with https://github.com/flutter/flutter/issues/78338
        jcenter {
            content {
                includeModule("org.jetbrains.trove4j", "trove4j")
            }
        }
32 33 34 35 36 37
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
38
    project.evaluationDependsOn(':app')
39 40 41 42 43
}

task clean(type: Delete) {
    delete rootProject.buildDir
}