File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
import org.gradle.jvm.tasks.Jar
2
2
3
- val jmhLibraryVersion = " 1.23"
4
3
val applicationStartClass = " com.imanushin.use.performance.StartKt"
5
4
6
5
plugins {
7
6
java
8
7
kotlin(" jvm" ) version embeddedKotlinVersion
9
- id( " me.champeau.gradle.jmh" ) version " 0.5.3 "
10
- id( " com.github.ben- manes.versions" ) version " 0.50.0 "
8
+ alias(libs.plugins. me.champeau.gradle.jmh)
9
+ alias(libs.plugins. com.github.ben. manes.versions)
11
10
}
12
11
13
12
kotlin {
@@ -25,7 +24,7 @@ dependencies {
25
24
tasks {
26
25
create<Jar >(" singleJar" ) {
27
26
manifest {
28
- attributes(" Main-Class" to applicationStartClass )
27
+ attributes(" Main-Class" to " com.imanushin.use.performance.StartKt " )
29
28
}
30
29
}
31
30
}
@@ -35,5 +34,5 @@ tasks {
35
34
// 2. jmh plugin is unable to compile code incrementally, so execute .\gradlew.bat clean before
36
35
// 3. jmh plugin has huge classpath, to change GRADLE_HOME folder to short path, like C:\g\
37
36
jmh {
38
- jmhVersion = jmhLibraryVersion
37
+ jmhVersion = libs.versions.jmh.get()
39
38
}
Original file line number Diff line number Diff line change
1
+ [versions ]
2
+ jmh = " 1.23"
3
+
4
+ [libraries ]
5
+
6
+ [plugins ]
7
+ me-champeau-gradle-jmh = { id = " me.champeau.gradle.jmh" , version = " 0.5.3" }
8
+ com-github-ben-manes-versions = { id = " com.github.ben-manes.versions" , version = " 0.50.0" }
You can’t perform that action at this time.
0 commit comments