-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ libraryDependencies ++= Seq( | |
"org.apache.pekko" %% "pekko-connectors-kafka" % pekkoKafka, | ||
"de.svenkubiak" % "jBCrypt" % "0.4.1", // ISC/BSD | ||
"com.auth0" % "java-jwt" % javaJwt, // MIT license | ||
"com.github.pureconfig" %% "pureconfig" % pureConfig, // Apache 2.0 | ||
"com.github.pureconfig" %% "pureconfig-core" % pureConfig, // Apache 2.0 | ||
"com.github.pureconfig" %% "pureconfig-generic-scala3" % pureConfig, // Apache 2.0 | ||
"org.scalactic" %% "scalactic" % scalaticVersion, // Apache 2.0 | ||
"org.webjars" % "swagger-ui" % "3.12.1", | ||
"org.typelevel" %% "cats-core" % catsVersion, // MIT | ||
|
@@ -37,16 +38,18 @@ scalacOptions ++= Seq( | |
"-feature", | ||
"-language:higherKinds", | ||
"-language:implicitConversions", | ||
"-language:existentials" | ||
"-language:existentials", | ||
"-Ykind-projector:underscores", | ||
"Xsource:3" | ||
) | ||
|
||
/// ASSEMBLY CONFIG | ||
|
||
mainClass in assembly := Some("play.core.server.ProdServerStart") | ||
test in assembly := {} | ||
assemblyJarName in assembly := "nio-provider.jar" | ||
fullClasspath in assembly += Attributed.blank(PlayKeys.playPackageAssets.value) | ||
assemblyMergeStrategy in assembly := { | ||
assembly / mainClass := Some("play.core.server.ProdServerStart") | ||
assembly / test := {} | ||
assembly / assemblyJarName := "nio-provider.jar" | ||
assembly / fullClasspath += Attributed.blank(PlayKeys.playPackageAssets.value) | ||
assembly / assemblyMergeStrategy := { | ||
case PathList("javax", xs @ _*) => MergeStrategy.first | ||
case PathList("META-INF", "native", xs @ _*) => MergeStrategy.first | ||
case PathList("org", "apache", "commons", "logging", xs @ _*) => MergeStrategy.discard | ||
|
@@ -65,18 +68,18 @@ assemblyMergeStrategy in assembly := { | |
|
||
lazy val packageAll = taskKey[Unit]("PackageAll") | ||
packageAll := { | ||
(dist in Compile).value | ||
(assembly in Compile).value | ||
(Compile / dist).value | ||
(Compile / assembly).value | ||
} | ||
|
||
/// DOCKER CONFIG | ||
|
||
dockerExposedPorts := Seq( | ||
9000 | ||
) | ||
packageName in Docker := "nio-provider" | ||
Docker / packageName := "nio-provider" | ||
|
||
maintainer in Docker := "MAIF Team <[email protected]>" | ||
Docker / maintainer := "MAIF Team <[email protected]>" | ||
|
||
dockerBaseImage := "openjdk:8" | ||
|
||
|
@@ -109,4 +112,4 @@ dockerEntrypoint ++= Seq( | |
|
||
dockerUpdateLatest := true | ||
|
||
packageName in Universal := s"nio-provider" | ||
Universal / packageName := s"nio-provider" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ lazy val `nio-server` = (project in file(".")) | |
|
||
scalaVersion := "2.13.14" | ||
|
||
semanticdbVersion := scalafixSemanticdb.revision | ||
|
||
resolvers ++= Seq( | ||
Resolver.jcenterRepo, | ||
"Maven central" at "https://repo1.maven.org/maven2/" | ||
|
@@ -38,8 +40,9 @@ libraryDependencies ++= Seq( | |
"org.apache.commons" % "commons-lang3" % "3.11", | ||
"de.svenkubiak" % "jBCrypt" % "0.4.1", // ISC/BSD | ||
"com.auth0" % "java-jwt" % javaJwt, // MIT license | ||
"com.github.pureconfig" %% "pureconfig" % pureConfig, // Apache 2.0 | ||
"org.scalactic" %% "scalactic" % scalaticVersion, // Apache 2.0 | ||
"com.github.pureconfig" %% "pureconfig-core" % pureConfig, // Apache 2.0 | ||
// "com.github.pureconfig" %% "pureconfig-generic-scala3" % pureConfig, // Apache 2.0 | ||
// "org.scalactic" %% "scalactic" % scalaticVersion, // Apache 2.0 | ||
"org.webjars" % "swagger-ui" % "3.12.1", | ||
"org.typelevel" %% "cats-core" % catsVersion, // MIT | ||
"com.softwaremill.macwire" %% "macros" % macwireVersion % "provided", | ||
|
@@ -57,7 +60,8 @@ scalacOptions ++= Seq( | |
"-feature", | ||
"-language:higherKinds", | ||
"-language:implicitConversions", | ||
"-language:existentials" | ||
"-language:existentials", | ||
"Xsource:3" | ||
) | ||
|
||
/// ASSEMBLY CONFIG | ||
|
@@ -95,9 +99,9 @@ packageAll := { | |
dockerExposedPorts := Seq( | ||
9000 | ||
) | ||
packageName in Docker := "nio" | ||
Docker / packageName := "nio" | ||
|
||
maintainer in Docker := "MAIF Team <[email protected]>" | ||
Docker / maintainer := "MAIF Team <[email protected]>" | ||
|
||
dockerBaseImage := "openjdk:8" | ||
|
||
|
@@ -134,4 +138,4 @@ dockerEntrypoint ++= Seq( | |
|
||
dockerUpdateLatest := true | ||
|
||
packageName in Universal := s"nio" | ||
Universal / packageName := s"nio" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version in ThisBuild := "2.0.6-SNAPSHOT" | ||
ThisBuild / version := "2.0.6-SNAPSHOT" |