build.gradle.kts 1.31 KB
Newer Older
1 2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

3 4 5
/*
 * Quasseldroid - Quassel client for Android
 *
6
 * Copyright (c) 2018 Janne Mareike Koschinski
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * Copyright (c) 2018 The Quassel Project
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 3 as published
 * by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

22
buildscript {
23 24 25 26 27
  repositories {
    google()
    jcenter()
  }
  dependencies {
Janne Koschinski's avatar
Janne Koschinski committed
28
    classpath("com.android.tools.build:gradle:3.4.2")
Janne Koschinski's avatar
Janne Koschinski committed
29
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50")
30
  }
31 32 33
}

allprojects {
34 35 36
  repositories {
    google()
    jcenter()
37
    maven(url = "https://jitpack.io")
38
  }
39 40 41 42 43 44 45

  tasks.withType<KotlinCompile>().configureEach {
    kotlinOptions {
      freeCompilerArgs += listOf(
        "-XXLanguage:+InlineClasses",
        "-Xuse-experimental=kotlin.ExperimentalUnsignedTypes"
      )
46
      jvmTarget = "1.6"
47 48
    }
  }
49
}