Skip to content

Commit

Permalink
improvement: Bump giter8 and make sure it gets updated automatically
Browse files Browse the repository at this point in the history
Fixes #6146
  • Loading branch information
tgodzik committed Feb 21, 2024
1 parent 089b5b6 commit 20258bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ lazy val metals = project
"bloopConfigVersion" -> V.bloopConfig,
"bloopNightlyVersion" -> V.bloop,
"sbtBloopVersion" -> V.sbtBloop,
"gitter8Version" -> V.gitter8Version,
"gradleBloopVersion" -> V.gradleBloop,
"mavenBloopVersion" -> V.mavenBloop,
"gradleBloopVersion" -> V.gradleBloop,
"scalametaVersion" -> V.scalameta,
"semanticdbVersion" -> V.semanticdb(scalaVersion.value),
"javaSemanticdbVersion" -> V.javaSemanticdb,
Expand Down Expand Up @@ -782,6 +782,7 @@ lazy val metalsDependencies = project
"ch.epfl.scala" %% "gradle-bloop" % V.gradleBloop,
"com.sourcegraph" % "semanticdb-java" % V.javaSemanticdb,
"ch.epfl.scala" %% "scala-debug-adapter" % V.debugAdapter intransitive (),
"org.foundweekends.giter8" %% "giter8" % V.gitter8Version intransitive (),
),
)
.disablePlugins(ScalafixPlugin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import scala.concurrent.Future
import scala.util.Try
import scala.util.matching.Regex

import scala.meta.internal.metals.BuildInfo
import scala.meta.internal.metals.ClientCommands
import scala.meta.internal.metals.ClientConfiguration
import scala.meta.internal.metals.Icons
Expand Down Expand Up @@ -35,7 +36,7 @@ class NewProjectProvider(
private val templatesUrl =
"https://github.com/foundweekends/giter8/wiki/giter8-templates.md"
private val giterDependency = Dependency
.of("org.foundweekends.giter8", "giter8_2.12", "0.13.0-M1")
.of("org.foundweekends.giter8", "giter8_2.12", BuildInfo.gitter8Version)
// equal to cmd's: g8 playframework/play-scala-seed.g8 --name=../<<name>>
private val giterMain = "giter8.Giter8"

Expand Down
1 change: 1 addition & 0 deletions project/V.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ object V {
// After each update of coursier interfaces, remember to bump the version in dotty repository.
val debugAdapter = "4.0.1"
val genyVersion = "1.0.0"
val gitter8Version = "0.16.2"
val gradleBloop = "1.6.2"
val java8Compat = "1.0.2"
val javaSemanticdb = "0.9.9"
Expand Down

0 comments on commit 20258bc

Please sign in to comment.