blob: d37c10c8d87b2d40d51fb333df19f235be9628a2 [file] [log] [blame]
Austin Schuh272c6132020-11-14 16:37:52 -08001// Top-level build file where you can add configuration options common to all sub-projects/modules.
Austin Schuhe89fa2d2019-08-14 20:24:23 -07002buildscript {
Austin Schuh272c6132020-11-14 16:37:52 -08003 ext.kotlin_version = "1.4.10"
Austin Schuhe89fa2d2019-08-14 20:24:23 -07004 repositories {
Austin Schuh272c6132020-11-14 16:37:52 -08005 google()
Austin Schuhe89fa2d2019-08-14 20:24:23 -07006 jcenter()
7 }
8 dependencies {
Austin Schuh272c6132020-11-14 16:37:52 -08009 classpath 'com.android.tools.build:gradle:4.1.0'
10 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11
12 // NOTE: Do not place your application dependencies here; they belong
13 // in the individual module build.gradle files
Austin Schuhe89fa2d2019-08-14 20:24:23 -070014 }
15}
16
17allprojects {
18 repositories {
Austin Schuh272c6132020-11-14 16:37:52 -080019 google()
Austin Schuhe89fa2d2019-08-14 20:24:23 -070020 jcenter()
21 }
22}
23
Austin Schuh272c6132020-11-14 16:37:52 -080024tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
25 sourceCompatibility = JavaVersion.VERSION_1_8
26 targetCompatibility = JavaVersion.VERSION_1_8
Austin Schuhe89fa2d2019-08-14 20:24:23 -070027
Austin Schuh272c6132020-11-14 16:37:52 -080028 compileKotlin {
29 dependsOn flatbuffer
Austin Schuhe89fa2d2019-08-14 20:24:23 -070030 }
Austin Schuh272c6132020-11-14 16:37:52 -080031}
Austin Schuhe89fa2d2019-08-14 20:24:23 -070032
Austin Schuh272c6132020-11-14 16:37:52 -080033task clean(type: Delete) {
34 delete rootProject.buildDir
Austin Schuhe89fa2d2019-08-14 20:24:23 -070035}