Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version of scala, sbt, finch and travis.yml #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
sudo: false

language: scala

cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/

scala:
- 2.13.1

jdk:
- oraclejdk8
- openjdk8

script:
## This runs the template with the default parameters, and runs test within the templated app.
- sbt g8Test

## Tricks to avoid unnecessary cache updates
Expand Down
16 changes: 5 additions & 11 deletions src/main/g8/build.sbt
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
val finchVersion = "$finch_version$"
val circeVersion = "$circe_version$"
val scalatestVersion = "$scalatest_version$"
import Dependencies._

ThisBuild / scalaVersion := "$scala_version$"
ThisBuild / version := "0.1.0-SNAPSHOT"

lazy val root = (project in file("."))
.settings(
organization := "$organization$",
name := "$name;format="norm"$",
version := "0.0.1-SNAPSHOT",
scalaVersion := "$scala_version$",
libraryDependencies ++= Seq(
"com.github.finagle" %% "finchx-core" % finchVersion,
"com.github.finagle" %% "finchx-circe" % finchVersion,
"io.circe" %% "circe-generic" % circeVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
libraryDependencies ++= Dependencies.buildDeps ++ Dependencies.testDeps
)
10 changes: 5 additions & 5 deletions src/main/g8/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ package = $organization$.$name;format="norm,word"$
# sbt_version = maven(org.scala-sbt, sbt, stable)
# finch_version = maven(com.github.finagle, finchx-core_2.12, stable)

scala_version = 2.12.7
sbt_version = 1.2.6
finch_version = 0.26.0
circe_version = 0.10.1
scala_version = 2.13.1
sbt_version = 1.3.10
finch_version = 0.32.1
circe_version = 0.13.0

scalatest_version = 3.0.5
scalatest_version = 3.1.1
18 changes: 18 additions & 0 deletions src/main/g8/project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import sbt._

object Dependencies {
lazy val finchVersion = "$finch_version$"
lazy val circeVersion = "$circe_version$"
lazy val scalatestVersion = "$scalatest_version$"

lazy val buildDeps = Seq(
"com.github.finagle" %% "finchx-core" % finchVersion,
"com.github.finagle" %% "finchx-circe" % finchVersion,
"io.circe" %% "circe-generic" % circeVersion
)

lazy val testDeps = Seq(
"org.scalatest" %% "scalatest" % scalatestVersion,
"org.scalactic" %% "scalactic" % scalatestVersion
).map(_ % Test)
}
1 change: 1 addition & 0 deletions src/main/g8/src/main/scala/$package__packaged$/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ object Main extends App {
.serve[Application.Json](helloWorld :+: hello)
.toService

println(s"Server starting at http://0.0.0.0:8081/\n")
Await.ready(Http.server.serve(":8081", service))
}