-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Scalariform library for tokenizing Scala submissions
The new version of Scalariform is 0.2.10. It is the last release from 2019. The library is no longer maintained. The built package scalariform.jar now includes the Scalariform library as well as the small CLI script ScalariformTokens. The JAR package is built for Scala 2.13 and can not be run with older Scala versions. Add sbt config files for building the scalariform.jar package with sbt. The command `sbt assembly` builds the JAR package with the dependencies. The build output is written to the scalariform/target/scala-2.13 directory and it must be copied from there manually. If there is a need to move on from the dead Scalariform library, one alternative could be Scalafmt: https://scalameta.org/scalafmt/
- Loading branch information
1 parent
29da156
commit 9e035e0
Showing
14 changed files
with
25 additions
and
4 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
Binary file not shown.
Binary file removed
BIN
-962 Bytes
tokenizer/scalariform/ScalariformTokens$$anonfun$2$$anonfun$apply$1.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,15 @@ | ||
ThisBuild / version := "0.1.0-SNAPSHOT" | ||
ThisBuild / scalaVersion := "2.13.8" | ||
|
||
scalacOptions ++= Seq("-deprecation", "-feature") | ||
|
||
// Scalariform is the library for parsing Scala code (the student's submissions). | ||
// The Scalariform project was stopped in 2019 and is no longer maintained. | ||
// https://mvnrepository.com/artifact/org.scalariform/scalariform | ||
libraryDependencies += "org.scalariform" %% "scalariform" % "0.2.10" | ||
|
||
// sbt-assembly plugin for building a JAR package that contains the dependencies as well. | ||
// But don't include the Scala standard library. | ||
assembly / mainClass := Some("ScalariformTokens") | ||
assemblyPackageScala / assembleArtifact := false | ||
|
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 @@ | ||
sbt.version=1.6.2 |
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 @@ | ||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0") |
Binary file not shown.