@@ -4,8 +4,6 @@ import scala.io.Source
4
4
import io .github .davidmweber .FlywayPlugin .autoImport ._
5
5
import sbt .Keys ._
6
6
import sbt ._
7
- import sbtassembly .AssemblyKeys ._
8
- import sbtassembly .MergeStrategy
9
7
10
8
object Common {
11
9
@@ -25,18 +23,20 @@ object Common {
25
23
private val logbackVersion = " 1.2.3"
26
24
private val specs2Version = " 4.10.2"
27
25
28
- // Compiler plugin dependency versions
29
- private val kindProjectorVersion = " 0.11.0"
26
+ // Compiler plugin (incl. Graal) dependency versions
30
27
private val betterMonadicForVersion = " 0.3.1"
28
+ private val kindProjectorVersion = " 0.11.0"
29
+ private val graalVmVersion = " 20.2.0"
31
30
32
31
final val settings : Seq [Setting [_]] =
33
- projectSettings ++ dependencySettings ++ flywaySettings ++ compilerPlugins ++ assemblySettings
32
+ projectSettings ++ dependencySettings ++ flywaySettings ++ compilerPlugins
34
33
35
34
private [this ] def projectSettings = Seq (
36
35
organization := " com.hhandoko" ,
37
36
name := " realworld" ,
38
37
version := using(Source .fromFile(" VERSION.txt" )) { _.mkString },
39
- scalaVersion := " 2.13.3"
38
+ scalaVersion := " 2.13.3" ,
39
+ mainClass in Compile := Some (" com.hhandoko.realworld.Main" )
40
40
)
41
41
42
42
private [this ] def dependencySettings = Seq (
@@ -52,12 +52,13 @@ object Common {
52
52
" org.http4s" %% " http4s-circe" % http4sVersion,
53
53
" org.http4s" %% " http4s-dsl" % http4sVersion,
54
54
" org.postgresql" % " postgresql" % postgresVersion,
55
+ " org.scalameta" %% " svm-subs" % graalVmVersion % " compile-internal" ,
56
+ " org.specs2" %% " specs2-core" % specs2Version % Test ,
55
57
" org.tpolecat" %% " doobie-core" % doobieVersion,
56
58
" org.tpolecat" %% " doobie-h2" % doobieVersion % Test ,
57
59
" org.tpolecat" %% " doobie-hikari" % doobieVersion,
58
60
" org.tpolecat" %% " doobie-postgres" % doobieVersion,
59
- " org.tpolecat" %% " doobie-specs2" % doobieVersion % Test ,
60
- " org.specs2" %% " specs2-core" % specs2Version % Test
61
+ " org.tpolecat" %% " doobie-specs2" % doobieVersion % Test
61
62
)
62
63
)
63
64
@@ -81,16 +82,6 @@ object Common {
81
82
flywayLocations := Seq (" filesystem:db/migration/postgresql" , " filesystem:db/seed" )
82
83
)
83
84
84
- private [this ] def assemblySettings = Seq (
85
- assemblyMergeStrategy in assembly := {
86
- case " module-info.class" =>
87
- MergeStrategy .concat
88
- case f =>
89
- val oldStrategy = (assemblyMergeStrategy in assembly).value
90
- oldStrategy(f)
91
- }
92
- )
93
-
94
85
/**
95
86
* Basic auto-closing implementation for closeable resource.
96
87
*
0 commit comments