Skip to content

Commit 5f846e1

Browse files
authored
Merge pull request #5 from imanushin/useVersionCatalog
introduce version catalog
2 parents e95ccb6 + 8effc7e commit 5f846e1

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

build.gradle.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import org.gradle.jvm.tasks.Jar
22

3-
val jmhLibraryVersion = "1.23"
43
val applicationStartClass = "com.imanushin.use.performance.StartKt"
54

65
plugins {
76
java
87
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)
1110
}
1211

1312
kotlin {
@@ -25,7 +24,7 @@ dependencies {
2524
tasks {
2625
create<Jar>("singleJar") {
2726
manifest {
28-
attributes("Main-Class" to applicationStartClass)
27+
attributes("Main-Class" to "com.imanushin.use.performance.StartKt")
2928
}
3029
}
3130
}
@@ -35,5 +34,5 @@ tasks {
3534
// 2. jmh plugin is unable to compile code incrementally, so execute .\gradlew.bat clean before
3635
// 3. jmh plugin has huge classpath, to change GRADLE_HOME folder to short path, like C:\g\
3736
jmh {
38-
jmhVersion = jmhLibraryVersion
37+
jmhVersion = libs.versions.jmh.get()
3938
}

gradle/libs.versions.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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" }

0 commit comments

Comments
 (0)