This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (66 loc) · 2.1 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
buildscript {
ext {
kotlinVersion = "1.2.21"
junitPlatformVersion = "1.0.3"
dokkaVersion = "0.9.16-eap-3"
bintrayVersion = "1.7.3"
}
repositories {
jcenter()
maven {
url "https://dl.bintray.com/kotlin/kotlin-eap/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.junit.platform:junit-platform-gradle-plugin:$junitPlatformVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintrayVersion"
}
}
allprojects {
ext {
junitJupiterVersion = "5.0.1"
mockitoVersion = "2.12.0"
kotlinMockitoVersion = "1.5.0"
}
}
subprojects {
apply plugin: "kotlin"
apply plugin: "org.junit.platform.gradle.plugin"
apply plugin: "org.jetbrains.dokka"
group "fr.cvlaminck.gradle"
ext {
bintrayUser = project.property('bintrayUser')
bintrayKey = project.property('bintrayKey')
}
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "com.nhaarman:mockito-kotlin-kt1.1:$kotlinMockitoVersion"
testCompile "org.junit.platform:junit-platform-engine:$junitPlatformVersion"
testCompile "org.junit.platform:junit-platform-launcher:$junitPlatformVersion"
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
}
junitPlatform {
filters {
includeClassNamePattern '.*Test'
}
enableStandardTestTask true
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}