-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
46 lines (38 loc) · 1.26 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val kotlinVersion: String by extra
val gradleAndroidVersion: String by extra
repositories {
maven("https://kotlin.bintray.com/kotlinx")
maven("https://dl.bintray.com/jetbrains/kotlin-native-dependencies")
maven("https://dl.bintray.com/kotlin/kotlin-dev")
google()
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.android.tools.build:gradle:$gradleAndroidVersion")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
allprojects {
repositories {
mavenCentral()
maven("https://dl.bintray.com/kodein-framework/kodein-dev")
maven("https://dl.bintray.com/kotlin/kotlinx")
maven("https://dl.bintray.com/kotlin/ktor")
maven("https://dl.bintray.com/kotlin/kotlin-dev")
maven("https://dl.bintray.com/badoo/maven")
google()
jcenter()
}
//In case of the same error explained here(https://youtrack.jetbrains.com/issue/KT-27170), uncomment below line:
//configurations.create("compileClasspath")
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}