File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
modules/options/src/main/scala/scala/build Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,9 @@ trait Core extends ScalaCliCrossSbtModule
435
435
|
436
436
| def localRepoResourcePath = " $localRepoResourcePath"
437
437
|
438
- | def jmhVersion = "1.29"
438
+ | def jmhVersion = " ${Deps .Versions .jmh}"
439
+ | def jmhOrg = " ${Deps .jmh.dep.module.organization.value}"
440
+ | def jmhModule = " ${Deps .jmh.dep.module.name.value}"
439
441
|
440
442
| def ammoniteVersion = " ${Deps .Versions .ammonite}"
441
443
| def ammoniteVersionForScala3Lts = " ${Deps .Versions .ammoniteForScala3Lts}"
Original file line number Diff line number Diff line change @@ -135,9 +135,8 @@ object Artifacts {
135
135
else
136
136
Nil
137
137
138
- val jmhDependencies = addJmhDependencies.toSeq.map { version =>
139
- dep " org.openjdk.jmh:jmh-generator-bytecode: $version"
140
- }
138
+ val jmhDependencies = addJmhDependencies.toSeq
139
+ .map(version => dep " ${Constants .jmhOrg}: ${Constants .jmhModule}: $version" )
141
140
142
141
val maybeSnapshotRepo = {
143
142
val hasSnapshots = jvmTestRunnerDependencies.exists(_.version.endsWith(" SNAPSHOT" )) ||
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ object Deps {
103
103
def coursier = coursierDefault
104
104
def coursierCli = coursierDefault
105
105
def coursierM1Cli = coursierDefault
106
+ def jmh = " 1.29"
106
107
def jsoniterScala = " 2.23.2"
107
108
def jsoniterScalaJava8 = " 2.13.5.2"
108
109
def jsoup = " 1.18.1"
@@ -162,6 +163,7 @@ object Deps {
162
163
ivy " org.virtuslab.scala-cli.java-class-name:java-class-name_3: ${Versions .javaClassName}"
163
164
def jgit = ivy " org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r "
164
165
def jimfs = ivy " com.google.jimfs:jimfs:1.3.0 "
166
+ def jmh = ivy " org.openjdk.jmh:jmh-generator-bytecode: ${Versions .jmh}"
165
167
def jniUtils = ivy " io.get-coursier.jniutils:windows-jni-utils:0.3.3 "
166
168
def jsoniterCore =
167
169
ivy " com.github.plokhotnyuk.jsoniter-scala::jsoniter-scala-core: ${Versions .jsoniterScalaJava8}"
You can’t perform that action at this time.
0 commit comments