Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 75769ae
Showing
6 changed files
with
68 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## generic files to ignore | ||
*~ | ||
*.lock | ||
*.DS_Store | ||
*.swp | ||
*.out | ||
|
||
# java specific | ||
*.class | ||
|
||
# sbt specific | ||
target/ | ||
project/boot | ||
lib_managed/* | ||
project/build/target | ||
project/build/lib_managed | ||
project/build/src_managed | ||
project/plugins/lib_managed | ||
project/plugins/target | ||
project/plugins/src_managed | ||
project/plugins/project | ||
|
||
# intellij | ||
*.eml | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.*.sw? | ||
.idea |
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,5 @@ | ||
FROM openjdk:8 | ||
|
||
ADD target/scala-2.12/sbt-starter-assembly-0.0.1.jar /usr/local/bin/target/scala-2.12/sbt-starter-assembly-0.0.1.jar | ||
|
||
CMD ["java", "-jar", "/usr/local/bin/target/scala-2.12/sbt-starter-assembly-0.0.1.jar"] |
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,19 @@ | ||
# sbt project starter | ||
|
||
Basic scaffolding for a Scala project built with sbt. | ||
|
||
More info: [https://lombardo-chcg.github.io/tools/2017/07/29/sbt-basics.html](https://lombardo-chcg.github.io/tools/2017/07/29/sbt-basics.html) | ||
|
||
``` | ||
sbt run | ||
``` | ||
|
||
or | ||
|
||
``` | ||
sbt assembly | ||
docker build -t sbt-starter . | ||
docker run sbt-starter:latest | ||
``` |
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,7 @@ | ||
name := "sbt-starter" | ||
|
||
version := "0.0.1" | ||
|
||
mainClass in assembly := Some("com.lombardo.app.Main") | ||
|
||
scalaVersion := "2.12.1" |
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" % "0.14.4") |
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,7 @@ | ||
package com.lombardo.app | ||
|
||
object Main { | ||
def main(args: Array[String]) { | ||
println("Hello from sbt starter pack!") | ||
} | ||
} |