aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/dotty-example/src/Main.scala3
-rw-r--r--plugins/uber-jar/src/UberJar.scala2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/dotty-example/src/Main.scala b/examples/dotty-example/src/Main.scala
index 1963b51..fdc2068 100644
--- a/examples/dotty-example/src/Main.scala
+++ b/examples/dotty-example/src/Main.scala
@@ -1,5 +1,6 @@
+package dotty_example
object Main extends Foo("Hello Dotty - trait parameters, yay"){
- def main(args: Array[String]) = {
+ def main(args: Array[String]): Unit = {
println(hello)
// Sanity check the classpath: this won't run if the dotty jar is not present.
diff --git a/plugins/uber-jar/src/UberJar.scala b/plugins/uber-jar/src/UberJar.scala
index c6815b4..3783367 100644
--- a/plugins/uber-jar/src/UberJar.scala
+++ b/plugins/uber-jar/src/UberJar.scala
@@ -13,7 +13,7 @@ trait UberJar extends BaseBuild {
ExitCode.Success
}
- def uberJarMainClass: Option[String] = Some(runClass)
+ def uberJarMainClass: Option[String] = runClass
def uberJarName: String = projectName + ".jar"