-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #914 from xuwei-k/scala-App
avoid deprecated `scala.App`. add explicit main
- Loading branch information
Showing
6 changed files
with
25 additions
and
13 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
6 changes: 4 additions & 2 deletions
6
...cases/simple-sbt-project/output/example-sbt-project/src/main/scala/com/example/Main.scala
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.example | ||
|
||
object Main extends App { | ||
println("Hello from project Example SBT project") | ||
object Main { | ||
def main(args: Array[String]): Unit = { | ||
println("Hello from project Example SBT project") | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...ces/testcases/simple-sbt-project/template/src/main/g8/src/main/scala/$package$/Main.scala
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package $package$ | ||
|
||
object Main extends App { | ||
println("Hello from project $name$") | ||
object Main { | ||
def main(args: Array[String]): Unit = { | ||
println("Hello from project $name$") | ||
} | ||
} |
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
6 changes: 4 additions & 2 deletions
6
plugin/src/sbt-test/giter8/without-name/src/main/g8/src/main/scala/$package$/Main.scala
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package $package$ | ||
|
||
object Main extends App { | ||
println("Hello from project without name") | ||
object Main { | ||
def main(args: Array[String]): Unit = { | ||
println("Hello from project without name") | ||
} | ||
} |