Skip to content

Commit

Permalink
Merge Scala 2 and Scala 3 apps (#113)
Browse files Browse the repository at this point in the history
Using the versionOverride syntax introduced in coursier/coursier#2231
  • Loading branch information
adpi2 authored Feb 1, 2022
1 parent 66fe886 commit b210c46
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
15 changes: 12 additions & 3 deletions apps/resources/scala.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"mainClass": "scala.tools.nsc.MainGenericRunner",
"mainClass": "dotty.tools.MainGenericRunner",
"repositories": [
"central"
],
"dependencies": [
"org.scala-lang:scala-compiler:latest.stable"
"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"
]
}
]
}
15 changes: 12 additions & 3 deletions apps/resources/scalac.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"mainClass": "scala.tools.nsc.Main",
"mainClass": "dotty.tools.dotc.Main",
"repositories": [
"central"
],
"dependencies": [
"org.scala-lang:scala-compiler:latest.stable"
"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"
]
}
]
}
15 changes: 12 additions & 3 deletions apps/resources/scaladoc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"mainClass": "scala.tools.nsc.ScalaDoc",
"mainClass": "dotty.tools.scaladoc.Main",
"repositories": [
"central"
],
"dependencies": [
"org.scala-lang:scala-compiler:latest.stable"
"org.scala-lang:scaladoc_3:latest.stable"
],
"properties": {
"scala.usejavacp": "true"
}
},
"versionOverrides": [
{
"versionRange": "(,2.max]",
"mainClass": "scala.tools.nsc.ScalaDoc",
"dependencies": [
"org.scala-lang:scala-compiler:latest.stable"
]
}
]
}

0 comments on commit b210c46

Please sign in to comment.