Skip to content

Commit 8cc0161

Browse files
committed
Extract default SBT version to a constant
1 parent 6818c32 commit 8cc0161

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

build.sc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ trait Core extends ScalaCliCrossSbtModule
518518
| def giter8Organization = "${Deps.giter8.dep.module.organization.value}"
519519
| def giter8Name = "${Deps.giter8.dep.module.name.value}"
520520
| def giter8Version = "${Deps.giter8.dep.version}"
521+
|
522+
| def sbtVersion = "${Deps.Versions.sbtVersion}"
521523
|
522524
| def mavenVersion = "${Deps.Versions.mavenVersion}"
523525
| def mavenScalaCompilerPluginVersion = "${Deps.Versions.mavenScalaCompilerPluginVersion}"

modules/cli/src/main/scala/scala/cli/commands/export0/Export.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ object Export extends ScalaCommand[ExportOptions] {
238238
project.print(System.out)
239239
}
240240
else {
241-
val sbtVersion = options.sbtVersion.getOrElse("1.10.2")
241+
val sbtVersion = options.sbtVersion.getOrElse(Constants.sbtVersion)
242242
val defaultMavenCompilerVersion = options.mvnVersion.getOrElse(Constants.mavenVersion)
243243
val defaultScalaMavenCompilerVersion =
244244
options.mvnScalaVersion.getOrElse(Constants.mavenScalaCompilerPluginVersion)

project/deps.sc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ object Deps {
124124
def javaSemanticdb = "0.10.0"
125125
def javaClassName = "0.1.3"
126126
def bloop = "2.0.0"
127+
def sbtVersion = "1.10.2"
127128
def mavenVersion = "3.8.1"
128129
def mavenScalaCompilerPluginVersion = "4.9.1"
129130
def mavenExecPluginVersion = "3.3.0"

0 commit comments

Comments
 (0)