forked from aballano/mnemonik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (68 loc) · 2.06 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
78
79
80
81
buildscript {
ext.kotlin_version = '1.4.10'
repositories {
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlinx:kotlinx.benchmark.gradle:0.2.0-dev-20"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
}
}
group = 'com.aballano'
subprojects { project ->
apply plugin: "kotlin"
apply plugin: 'kotlinx.benchmark'
apply plugin: "kotlin-allopen"
repositories {
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
}
sourceSets {
benchmarks
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx.benchmark.runtime-jvm:0.2.0-dev-20"
testImplementation 'io.kotlintest:kotlintest-runner-junit5:3.4.2'
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0"
benchmarksImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0"
benchmarksCompile sourceSets.main.output + sourceSets.main.runtimeClasspath
}
allOpen {
annotation("org.openjdk.jmh.annotations.State")
}
benchmark {
configurations {
main {
warmups = 20
iterations = 10
iterationTime = 3
iterationTimeUnit = "s"
}
smoke {
warmups = 5
iterations = 3
iterationTime = 500
iterationTimeUnit = "ms"
}
}
targets {
register("benchmarks")
}
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat 'full'
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}