Skip to content

Commit 305c66a

Browse files
committed
Generate proper benchmarks jar
1 parent 988eb26 commit 305c66a

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

benchmarks/build.gradle

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
plugins {
6-
id "me.champeau.gradle.jmh" version "0.4.4"
7-
}
5+
apply plugin: "net.ltgt.apt"
6+
apply plugin: "com.github.johnrengelman.shadow"
7+
apply plugin: "me.champeau.gradle.jmh"
88

99
repositories {
1010
maven { url "http://repo.typesafe.com/typesafe/releases/" }
1111
}
1212

13-
dependencies {
14-
jmh 'com.typesafe.akka:akka-actor_2.12:2.5.0'
15-
jmh project(':kotlinx-coroutines-core-common')
16-
jmh project(':kotlinx-coroutines-core')
17-
jmh project(':kotlinx-coroutines-core').sourceSets.test.output
18-
}
19-
20-
jmh.jmhVersion = '1.19'
13+
jmh.jmhVersion = '1.21'
2114

22-
jmhJar.archiveName = 'benchmarks.jar'
15+
jmhJar {
16+
baseName 'benchmarks'
17+
classifier = null
18+
version = null
19+
}
2320

24-
//jmh {
25-
// include = ['.*Channel.*Benchmark']
26-
// exclude = ['.*Guice.*', '.*PingPong.*']
27-
//}
21+
dependencies {
22+
compile 'com.typesafe.akka:akka-actor_2.12:2.5.0'
23+
compile project(':kotlinx-coroutines-core-common')
24+
compile project(':kotlinx-coroutines-core')
25+
compile project(':kotlinx-coroutines-core').sourceSets.test.output
26+
compile "org.openjdk.jmh:jmh-core:1.21"
27+
}

build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ buildscript {
3636
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFU_version"
3737
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version"
3838
classpath "com.moowork.gradle:gradle-node-plugin:$gradle_node_version"
39+
40+
// JMH plugins
41+
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.2"
42+
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.7"
43+
classpath "net.ltgt.gradle:gradle-apt-plugin:0.10"
3944
}
4045
}
4146

0 commit comments

Comments
 (0)