-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathbuild.sbt
More file actions
41 lines (39 loc) · 1.88 KB
/
build.sbt
File metadata and controls
41 lines (39 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.21.0")
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.1")
// Bumping this will causes issues. The benchmark bridge
// needs to be updated in order for us to bump to 0.4.x.
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.8")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.9.0")
addSbtPlugin("org.scala-debugger" % "sbt-jdi-tools" % "1.1.1")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.11.7")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.6")
updateOptions := updateOptions.value.withLatestSnapshots(false)
libraryDependencies ++= List(
// set to jgit 5, because 6 is compatible only with java 11,
// context https://github.com/scalacenter/bloop/pull/2101
"org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.5.202508271544-r",
"org.eclipse.jgit" % "org.eclipse.jgit.ssh.jsch" % "5.13.5.202508271544-r",
"commons-codec" % "commons-codec" % "1.21.0",
"org.kohsuke" % "github-api" % "1.330",
("ch.epfl.scala" % "jarjar" % "1.7.2-patched")
.exclude("org.apache.ant", "ant")
)
Keys.onLoad in Global := {
val oldOnLoad = (Keys.onLoad in Global).value
oldOnLoad.andThen { state =>
val files = IO.listFiles(state.baseDir / "benchmark-bridge")
if (!files.isEmpty) state
else {
throw new sbt.internal.util.MessageOnlyException(
"""
|It looks like you didn't fully set up Bloop after cloning (git submodules are missing).
|Read the contributing guide for more information: https://scalacenter.github.io/bloop/docs/contributing-guide#set-the-repository-up""".stripMargin
)
}
}
}