Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lombardo-chcg committed Jul 29, 2017
0 parents commit 75769ae
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitignore
@@ -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
5 changes: 5 additions & 0 deletions Dockerfile
@@ -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"]
19 changes: 19 additions & 0 deletions README.md
@@ -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
```
7 changes: 7 additions & 0 deletions build.sbt
@@ -0,0 +1,7 @@
name := "sbt-starter"

version := "0.0.1"

mainClass in assembly := Some("com.lombardo.app.Main")

scalaVersion := "2.12.1"
1 change: 1 addition & 0 deletions project/assembly.sbt
@@ -0,0 +1 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.4")
7 changes: 7 additions & 0 deletions src/main/scala/Main.scala
@@ -0,0 +1,7 @@
package com.lombardo.app

object Main {
def main(args: Array[String]) {
println("Hello from sbt starter pack!")
}
}

0 comments on commit 75769ae

Please sign in to comment.