diff --git a/build.sbt b/build.sbt index 1308bc34421..c3167c66df0 100644 --- a/build.sbt +++ b/build.sbt @@ -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, @@ -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) diff --git a/metals/src/main/scala/scala/meta/internal/builds/NewProjectProvider.scala b/metals/src/main/scala/scala/meta/internal/builds/NewProjectProvider.scala index 67b3dbe6ab3..c4092f5dc4a 100644 --- a/metals/src/main/scala/scala/meta/internal/builds/NewProjectProvider.scala +++ b/metals/src/main/scala/scala/meta/internal/builds/NewProjectProvider.scala @@ -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 @@ -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=../<> private val giterMain = "giter8.Giter8" diff --git a/project/V.scala b/project/V.scala index 5fc9812dc39..b14c3b22d3d 100644 --- a/project/V.scala +++ b/project/V.scala @@ -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"