-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle.kts
47 lines (40 loc) · 1.16 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
47
import org.gradle.internal.impldep.org.fusesource.jansi.AnsiRenderer.test
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`kotlin-dsl`
}
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
//Kotlin extensions can only be accessed via fully qualified names inside buildscript block
//https://github.com/gradle/gradle/issues/9270
classpath(BuildScriptDependencies.gradleAndroid)
classpath(BuildScriptDependencies.gradlePlugin)
classpath("com.vanniktech:gradle-maven-publish-plugin:0.18.0")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.4.10.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
}
}
allprojects {
repositories {
mavenCentral()
google()
}
}
subprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType<JavaCompile> {
targetCompatibility = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
}
tasks.withType<Test> {
useJUnitPlatform()
}
}