-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-tests
- Loading branch information
Showing
36 changed files
with
177 additions
and
5,283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package rules_scala3 | ||
|
||
import sbt.librarymanagement.syntax.* | ||
import sbt.librarymanagement.{DependencyBuilders, ModuleID, Resolver}, DependencyBuilders.OrganizationArtifactName | ||
|
||
object Dependencies: | ||
|
||
private val jmhV = "1.37" | ||
|
||
val resolvers: Seq[Resolver] = Vector( | ||
"mavencentral".at("https://repo1.maven.org/maven2/"), | ||
"sonatype releases".at("https://oss.sonatype.org/service/local/repositories/releases/content"), | ||
"apache staging".at("https://repository.apache.org/content/repositories/staging"), | ||
"apache snapshots".at("https://repository.apache.org/snapshots"), | ||
"google".at("https://maven.google.com/"), | ||
"jitsi-maven-repository".at("https://github.com/jitsi/jitsi-maven-repository/raw/master/releases") | ||
) | ||
// Replacements are not handled by `librarymanagement`. any Scala prefix in the name will be dropped. | ||
// It also doesn't matter whether you use double `%` to get the Scala version or not. | ||
val replacements: Map[OrganizationArtifactName, String] = Map( | ||
"org.scala-lang" % "scala3-library" -> "@scala3_library//jar", | ||
"org.scala-lang" % "scala-library" -> "@scala_library_2_13//jar", | ||
"org.scala-lang" % "scala-reflect" -> "@scala_reflect_2_13//jar" | ||
) | ||
val dependencies: Seq[ModuleID] = Vector( | ||
"org.openjdk.jmh" % "jmh-core" % jmhV, | ||
"org.openjdk.jmh" % "jmh-generator-bytecode" % jmhV, | ||
"org.openjdk.jmh" % "jmh-generator-reflection" % jmhV, | ||
"org.openjdk.jmh" % "jmh-generator-asm" % jmhV, | ||
"com.github.scopt" %% "scopt" % "4.1.0" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.