Skip to content

Commit

Permalink
Update semanticdb-scalac to 4.9.9 (#3316)
Browse files Browse the repository at this point in the history
Pull request: #3316
  • Loading branch information
scala-steward committed Jul 30, 2024
1 parent ed2d2f6 commit b4bfeb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ object Deps {
val scalatags = ivy"com.lihaoyi::scalatags:0.12.0"
def scalaXml = ivy"org.scala-lang.modules::scala-xml:2.3.0"
// keep in sync with doc/antora/antory.yml
val semanticDBscala = ivy"org.scalameta:::semanticdb-scalac:4.9.8"
val semanticDBscala = ivy"org.scalameta:::semanticdb-scalac:4.9.9"
val semanticDbJava = ivy"com.sourcegraph:semanticdb-java:0.10.0"
val sourcecode = ivy"com.lihaoyi::sourcecode:0.3.1"
val upickle = ivy"com.lihaoyi::upickle:3.3.1"
Expand Down Expand Up @@ -1199,13 +1199,13 @@ object example extends MillScalaModule {

trait ExampleCrossModuleJava extends ExampleCrossModule {

def upstreamCross(s: String) = s match{
def upstreamCross(s: String) = s match {
case "basicjava" => basic
case "javabuilds" => scalabuilds
case "javamodule" => scalamodule
}

def buildScLines = T{
def buildScLines = T {
val upstreamLines = os.read.lines(
upstreamCross(this.millModuleSegments.parts.dropRight(1).last)(crossValue)
.testRepoRoot().path / "build.sc"
Expand All @@ -1215,20 +1215,20 @@ object example extends MillScalaModule {
import collection.mutable
val groupedLines = mutable.Map.empty[String, mutable.Buffer[String]]
var current = Option.empty[String]
lines.foreach{
lines.foreach {
case s"//// SNIPPET:$name" =>
current = Some(name)
groupedLines(name) = mutable.Buffer()
case s => groupedLines(current.get).append(s)
}

upstreamLines.flatMap{
upstreamLines.flatMap {
case s"//// SNIPPET:$name" =>
if (name != "END") {

current = Some(name)
groupedLines(name)
} else{
} else {
current = None
Nil
}
Expand All @@ -1245,7 +1245,7 @@ object example extends MillScalaModule {
def testRepoRoot: T[PathRef] = T.source(millSourcePath)
def compile = example.compile()

def buildScLines = T{ os.read.lines(testRepoRoot().path / "build.sc") }
def buildScLines = T { os.read.lines(testRepoRoot().path / "build.sc") }
def forkEnv = super.forkEnv() ++ Map("MILL_EXAMPLE_PARSED" -> upickle.default.write(parsed()))

/**
Expand Down

0 comments on commit b4bfeb1

Please sign in to comment.