-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (35 loc) · 1.1 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
plugins {
kotlin("jvm") version "1.4.32"
kotlin("kapt") version "1.4.32"
id("me.champeau.gradle.jmh") version "0.5.2"
id("io.morethan.jmhreport") version "0.9.0"
application
}
group = "br.com.alice.benchmarks"
version "0.0.1"
repositories {
mavenCentral()
}
sourceSets.main {
java.srcDirs("src")
}
sourceSets.test {
java.srcDirs("test")
}
dependencies {
kapt("org.openjdk.jmh:jmh-generator-annprocess:1.25")
implementation("org.openjdk.jmh:jmh-core:1.25")
implementation("org.openjdk.jmh:jmh-generator-annprocess:1.25")
api("ch.qos.logback:logback-classic:1.2.3")
implementation("net.logstash.logback:logstash-logback-encoder:6.4")
annotationProcessor("org.openjdk.jmh:jmh-generator-annprocess:1.25")
testImplementation(kotlin("test-junit"))
}
jmhReport {
jmhResultPath = project.file("build/result.json").absolutePath
jmhReportOutput = project.file("build/reports/jmh").absolutePath
}
task("benchmarks", type = JavaExec::class) {
classpath = sourceSets.getByName("test").runtimeClasspath
main = "br.com.alice.benchmarks.BenchmarksRunnerKt"
}