Skip to content

Instantly share code, notes, and snippets.

@bishabosha
Last active May 5, 2022 19:46
Show Gist options
  • Save bishabosha/4aca1f5befb5bbb50c8a8825120e6d65 to your computer and use it in GitHub Desktop.
Save bishabosha/4aca1f5befb5bbb50c8a8825120e6d65 to your computer and use it in GitHub Desktop.
Coursier Channel for Setting up Scala
{
"coursier": {
"repositories": [
"central"
],
"dependencies": [
"io.get-coursier::coursier-cli:2.1.0-M2"
]
},
"scala-cli" : {
"repositories": [
"central",
"sonatype:snapshots"
],
"dependencies": [
"org.virtuslab.scala-cli:cli_3:latest.release"
],
"mainClass": "scala.cli.ScalaCli"
},
"sbt": {
"repositories": [
"central"
],
"dependencies": [
"org.scala-sbt:sbt:latest.stable"
],
"launcherType": "prebuilt",
"prebuilt": "zip+https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.zip!sbt/bin/sbt"
},
"scala": {
"mainClass": "dotty.tools.MainGenericRunner",
"repositories": [
"central"
],
"dependencies": [
"org.scala-lang:scala3-compiler_3:latest.stable"
],
"properties": {
"scala.usejavacp": "true"
},
"versionOverrides": [
{
"versionRange": "(,2.max]",
"mainClass": "scala.tools.nsc.MainGenericRunner",
"dependencies": [
"org.scala-lang:scala-compiler:latest.stable"
]
}
]
},
"scalac": {
"mainClass": "dotty.tools.dotc.Main",
"repositories": [
"central"
],
"dependencies": [
"org.scala-lang:scala3-compiler_3:latest.stable"
],
"properties": {
"scala.usejavacp": "true"
},
"versionOverrides": [
{
"versionRange": "(,2.max]",
"mainClass": "scala.tools.nsc.Main",
"dependencies": [
"org.scala-lang:scala-compiler:latest.stable"
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment