Skip to content

Commit

Permalink
initial commit: project bootstrap
Browse files Browse the repository at this point in the history
initial commit: project bootstrap
  • Loading branch information
stankoua committed Oct 16, 2019
1 parent 7c216d4 commit 41c94e8
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.class
*.log
target/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# k8-sftp-pull
# k8-sftp-push
14 changes: 14 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Dependencies._

ThisBuild / scalaVersion := "2.13.1"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.example"
ThisBuild / organizationName := "example"

lazy val root = (project in file("."))
.settings(
name := "k8-sftp-push",
libraryDependencies += scalaTest % Test
)

// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.
5 changes: 5 additions & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sbt._

object Dependencies {
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.0.8"
}
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.3.2
9 changes: 9 additions & 0 deletions src/main/scala/example/Hello.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example

object Hello extends Greeting with App {
println(greeting)
}

trait Greeting {
lazy val greeting: String = "hello"
}
9 changes: 9 additions & 0 deletions src/test/scala/example/HelloSpec.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example

import org.scalatest._

class HelloSpec extends FlatSpec with Matchers {
"The Hello object" should "say hello" in {
Hello.greeting shouldEqual "hello"
}
}

0 comments on commit 41c94e8

Please sign in to comment.