-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
55 lines (43 loc) · 1.17 KB
/
build.gradle
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
48
49
50
51
52
53
54
55
buildscript {
ext.kotlinVersion = "1.3.70"
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:0.9.17")
}
}
plugins {
id("com.github.ben-manes.versions") version "0.28.0"
}
project.apply from: './gradle/scripts/git.gradle'
subprojects {
project.apply from: "$rootDir/dependencies.gradle"
repositories {
mavenCentral()
jcenter()
}
afterEvaluate {
dokka {
outputDirectory = javadoc.destinationDir.absolutePath
includeNonPublic = false
}
javadoc.dependsOn(dokka)
if (project.hasProperty("java")) {
java {
targetCompatibility = JavaVersion.VERSION_1_8
}
}
if (project.hasProperty("compileKotlin")) {
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
project.apply from: "$rootDir/publishing.gradle"
}
}
println "${git.versionName()} (${git.commitCount()})"