From c07604512c4eb1f8ae790519332fe18c029db1d6 Mon Sep 17 00:00:00 2001 From: Guntis Smaukstelis Date: Fri, 12 May 2023 21:32:14 +0300 Subject: [PATCH] Added main file server.Server and assembly for flat jars --- .gitignore | 1 + build.sbt | 7 ++++--- project/assembly.sbt | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 project/assembly.sbt diff --git a/.gitignore b/.gitignore index 8741fdf..57b2eb0 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ dependency-reduced-pom.xml logs/ .DS_Store data/* +!project/assembly.sbt diff --git a/build.sbt b/build.sbt index 681f61e..961272f 100644 --- a/build.sbt +++ b/build.sbt @@ -1,10 +1,11 @@ -ThisBuild / version := "0.1.0-SNAPSHOT" +ThisBuild / version := "0.1.1-SNAPSHOT" ThisBuild / scalaVersion := "2.13.10" lazy val root = (project in file(".")) .settings( - name := "WeatherTool" + name := "WeatherTool", + Compile / mainClass := Some("server.Server") ) val http4sVersion = "0.23.16" @@ -21,7 +22,7 @@ libraryDependencies ++= Seq( "org.scala-lang" % "scala-reflect" % "2.13.10", -"io.circe" %% "circe-core" % circeVersion, + "io.circe" %% "circe-core" % circeVersion, "io.circe" %% "circe-generic" % circeVersion, "io.circe" %% "circe-generic-extras" % circeVersion, "io.circe" %% "circe-optics" % circeVersion, diff --git a/project/assembly.sbt b/project/assembly.sbt new file mode 100644 index 0000000..72477a2 --- /dev/null +++ b/project/assembly.sbt @@ -0,0 +1 @@ +addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0")