-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle.kts
35 lines (31 loc) · 1.01 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
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath(kotlin("gradle-plugin", Config.Versions.Kotlin.kotlin))
classpath("com.android.tools.build:gradle:${Config.Versions.Plugin.androidGradle}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${Config.Versions.Plugin.dokka}")
classpath("com.vanniktech:gradle-maven-publish-plugin:${Config.Versions.Plugin.publish}")
}
}
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
JavaVersion.VERSION_1_8.toString().also {
kotlinOptions.jvmTarget = it
if (plugins.hasPlugin("org.jetbrains.kotlin.jvm")) {
sourceCompatibility = it
targetCompatibility = it
}
}
}
repositories {
mavenCentral()
google()
jcenter()
}
group = project.property("GROUP").toString()
version = project.property("VERSION_NAME").toString()
}