-
Notifications
You must be signed in to change notification settings - Fork 13
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
66 changed files
with
475 additions
and
502 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
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
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 |
---|---|---|
|
@@ -42,11 +42,11 @@ scalacOptions ++= Seq( | |
|
||
/// 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 | ||
|
@@ -59,24 +59,24 @@ assemblyMergeStrategy in assembly := { | |
case PathList(ps @ _*) if ps.contains("buildinfo") => MergeStrategy.discard | ||
case PathList(ps @ _*) if ps.last endsWith "reflection-config.json" => MergeStrategy.first | ||
case o => | ||
val oldStrategy = (assemblyMergeStrategy in assembly).value | ||
val oldStrategy = (assembly / assemblyMergeStrategy).value | ||
oldStrategy(o) | ||
} | ||
|
||
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 +109,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
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
Oops, something went wrong.