Skip to content

Commit

Permalink
Swap scalameta trees for semanticdb-shared & bump scalameta t…
Browse files Browse the repository at this point in the history
…o 4.9.8 (#3017)

* Update trees_2.13 to 4.9.8

* Add the missing `org.scalameta:semanticdb-shared` dependency

* Remove the no longer necessary `org.scalameta:trees` dependency

* Exclude `jline` from `semanticdb-shared`

---------

Co-authored-by: Scala Steward <scala_steward@virtuslab.com>
  • Loading branch information
Gedochao and scala-steward authored Jul 11, 2024
1 parent 2ca1704 commit d3af5b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
9 changes: 5 additions & 4 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,10 @@ trait Core extends ScalaCliCrossSbtModule
| def runnerVersion = "${runner(Scala.runnerScala3).publishVersion()}"
| def runnerMainClass = "$runnerMainClass"
|
| def semanticDbPluginOrganization = "${Deps.scalametaTrees.dep.module.organization.value}"
| def semanticDbPluginModuleName = "semanticdb-scalac"
| def semanticDbPluginVersion = "${Deps.scalametaTrees.dep.version}"
| def semanticDbPluginOrganization = "${Deps.semanticDbScalac.dep.module.organization
.value}"
| def semanticDbPluginModuleName = "${Deps.semanticDbScalac.dep.module.name.value}"
| def semanticDbPluginVersion = "${Deps.semanticDbScalac.dep.version}"
|
| def semanticDbJavacPluginOrganization = "${Deps.semanticDbJavac.dep.module.organization
.value}"
Expand Down Expand Up @@ -678,7 +679,7 @@ trait Build extends ScalaCliCrossSbtModule
Deps.collectionCompat,
Deps.javaClassName,
Deps.jsoniterCore,
Deps.scalametaTrees,
Deps.scalametaSemanticDbShared,
Deps.nativeTestRunner,
Deps.osLib,
Deps.pprint,
Expand Down
15 changes: 7 additions & 8 deletions project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object Deps {
def coursierM1Cli = coursierDefault
def jsoniterScala = "2.23.2"
def jsoniterScalaJava8 = "2.13.5.2"
def scalaMeta = "4.9.7"
def scalaMeta = "4.9.8"
def scalaNative04 = "0.4.17"
def scalaNative05 = "0.5.4"
def scalaNative = scalaNative05
Expand Down Expand Up @@ -180,16 +180,15 @@ object Deps {
def scalaJsLogging = ivy"org.scala-js:scalajs-logging_2.13:1.1.1"
// Force using of 2.13 - is there a better way?
def scalaJsTestAdapter = ivy"org.scala-js:scalajs-sbt-test-adapter_2.13:${Scala.scalaJs}"
// Force using of 2.13 - is there a better way?
def scalametaTrees = ivy"org.scalameta:trees_2.13:${Versions.scalaMeta}"
.exclude(("com.lihaoyi", "sourcecode_2.13"))
.exclude(("org.scala-lang.modules", "scala-collection-compat_2.13"))
def scalaPackager = ivy"org.virtuslab:scala-packager_2.13:${Versions.scalaPackager}"
def scalaPackagerCli = ivy"org.virtuslab:scala-packager-cli_2.13:${Versions.scalaPackager}"
def scalaPy = ivy"dev.scalapy::scalapy-core::0.5.3"
def scalaPackager = ivy"org.virtuslab:scala-packager_2.13:${Versions.scalaPackager}"
def scalaPackagerCli = ivy"org.virtuslab:scala-packager-cli_2.13:${Versions.scalaPackager}"
def scalaPy = ivy"dev.scalapy::scalapy-core::0.5.3"
def scalaReflect(sv: String) = ivy"org.scala-lang:scala-reflect:$sv"
def semanticDbJavac = ivy"com.sourcegraph:semanticdb-javac:${Versions.javaSemanticdb}"
def semanticDbScalac = ivy"org.scalameta:::semanticdb-scalac:${Versions.scalaMeta}"
def scalametaSemanticDbShared =
ivy"org.scalameta:semanticdb-shared_${Scala.scala213}:${Versions.scalaMeta}"
.exclude("org.jline" -> "jline") // to prevent incompatibilities with GraalVM <23
def signingCliShared =
ivy"org.virtuslab.scala-cli-signing::shared:${Versions.signingCli}"
// to prevent collisions with scala-cli's case-app version
Expand Down

0 comments on commit d3af5b5

Please sign in to comment.