build.gradle 747 Bytes
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
buildscript {
6
    ext.kotlin_version = '1.3.50'
7
    repositories {
8
        google()
9 10 11 12
        jcenter()
    }

    dependencies {
13
        classpath 'com.android.tools.build:gradle:3.5.0'
14
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15 16 17 18 19
    }
}

allprojects {
    repositories {
20
        google()
21 22 23 24 25 26 27
        jcenter()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
28 29
}
subprojects {
30 31 32 33 34 35
    project.evaluationDependsOn(':app')
}

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