-
Notifications
You must be signed in to change notification settings - Fork 201
/
build.sbt
42 lines (40 loc) · 1.97 KB
/
build.sbt
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
42
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")
addSbtPlugin("ohnosequences" % "sbt-github-release" % "0.7.0")
addSbtPlugin("com.scalawilliam.esbeetee" % "sbt-vspp" % "0.4.11")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.12.0")
// 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.3.7")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2")
addSbtPlugin("org.scala-debugger" % "sbt-jdi-tools" % "1.1.1")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0")
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.3.202401111512-r",
"org.eclipse.jgit" % "org.eclipse.jgit.ssh.jsch" % "5.13.3.202401111512-r",
"commons-codec" % "commons-codec" % "1.16.1",
("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
)
}
}
}