Skip to content

Commit

Permalink
Extract default SBT version to a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Sep 23, 2024
1 parent 6818c32 commit 8cc0161
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ trait Core extends ScalaCliCrossSbtModule
| def giter8Organization = "${Deps.giter8.dep.module.organization.value}"
| def giter8Name = "${Deps.giter8.dep.module.name.value}"
| def giter8Version = "${Deps.giter8.dep.version}"
|
| def sbtVersion = "${Deps.Versions.sbtVersion}"
|
| def mavenVersion = "${Deps.Versions.mavenVersion}"
| def mavenScalaCompilerPluginVersion = "${Deps.Versions.mavenScalaCompilerPluginVersion}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ object Export extends ScalaCommand[ExportOptions] {
project.print(System.out)
}
else {
val sbtVersion = options.sbtVersion.getOrElse("1.10.2")
val sbtVersion = options.sbtVersion.getOrElse(Constants.sbtVersion)
val defaultMavenCompilerVersion = options.mvnVersion.getOrElse(Constants.mavenVersion)
val defaultScalaMavenCompilerVersion =
options.mvnScalaVersion.getOrElse(Constants.mavenScalaCompilerPluginVersion)
Expand Down
1 change: 1 addition & 0 deletions project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ object Deps {
def javaSemanticdb = "0.10.0"
def javaClassName = "0.1.3"
def bloop = "2.0.0"
def sbtVersion = "1.10.2"
def mavenVersion = "3.8.1"
def mavenScalaCompilerPluginVersion = "4.9.1"
def mavenExecPluginVersion = "3.3.0"
Expand Down

0 comments on commit 8cc0161

Please sign in to comment.