Skip to content

Fix lampepfl/dotty-knowledge#17: add a scripted sbt test for @main annotation #8384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sbt-dotty/sbt-test/sbt-dotty/dotty-knowledge.i17/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
val dottyVersion = "0.22.0-RC1"

lazy val root = project
.in(file("."))
.settings(
name := "dotty-simple",
version := "0.1.0",

scalaVersion := dottyVersion,

libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.3.8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.0")
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@main
def testMethod(): Unit = {
println("Hello world!")
}
1 change: 1 addition & 0 deletions sbt-dotty/sbt-test/sbt-dotty/dotty-knowledge.i17/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> run