build.gradle 1.23 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 7 8
// This file is auto generated.
// To update all the build.gradle files in the Flutter repo,
// See dev/tools/bin/generate_gradle_lockfiles.dart.

9
buildscript {
10
    ext.kotlin_version = '1.5.31'
11 12
    repositories {
        google()
13
        mavenCentral()
14 15 16
    }

    dependencies {
17
        classpath 'com.android.tools.build:gradle:4.1.3'
18 19 20 21 22
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

    configurations.classpath {
        resolutionStrategy.activateDependencyLocking()
23 24 25 26 27 28
    }
}

allprojects {
    repositories {
        google()
29
        mavenCentral()
30 31 32 33
    }
}

rootProject.buildDir = '../build'
34

35 36
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
37 38
}
subprojects {
39
    project.evaluationDependsOn(':app')
40 41 42
    dependencyLocking {
        ignoredDependencies.add('io.flutter:*')
        lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile")
43 44 45
        if (!project.hasProperty('local-engine-repo')) {
          lockAllConfigurations()
        }
46
    }
47 48 49 50 51
}

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