-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4329 from guardian/update-to-java-11
Update to Java 11
- Loading branch information
Showing
7 changed files
with
27 additions
and
18 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.8 | ||
11 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
java corretto-11.0.24.8.1 |
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 |
---|---|---|
|
@@ -15,11 +15,11 @@ import com.typesafe.sbt.packager.debian.JDebPackaging | |
ThisBuild / packageOptions += FixedTimestamp(Package.keepTimestamps) | ||
|
||
val commonSettings = Seq( | ||
scalaVersion := "2.12.15", | ||
scalaVersion := "2.12.20", | ||
description := "grid", | ||
organization := "com.gu", | ||
version := "0.1", | ||
scalacOptions ++= Seq("-feature", "-deprecation", "-language:higherKinds", "-Xfatal-warnings"), | ||
scalacOptions ++= Seq("-feature", "-deprecation", "-language:higherKinds", "-Xfatal-warnings", "-release:11"), | ||
|
||
// The Java SDK uses CBOR protocol | ||
// We use localstack in TEST. Kinesis in localstack uses kinesislite which requires CBOR to be disabled | ||
|
@@ -220,7 +220,7 @@ def playProject(projectName: String, port: Int, path: Option[String] = None): Pr | |
.dependsOn(restLib) | ||
.settings(commonSettings ++ buildInfo ++ Seq( | ||
playDefaultPort := port, | ||
debianPackageDependencies := Seq("openjdk-8-jre-headless"), | ||
debianPackageDependencies := Seq("java11-runtime-headless"), | ||
Linux / maintainer := "Guardian Developers <[email protected]>", | ||
Linux / packageSummary := description.value, | ||
packageDescription := description.value, | ||
|
@@ -244,12 +244,8 @@ def playProject(projectName: String, port: Int, path: Option[String] = None): Pr | |
"-Dpidfile.path=/dev/null", | ||
s"-Dconfig.file=/usr/share/$projectName/conf/application.conf", | ||
s"-Dlogger.file=/usr/share/$projectName/conf/logback.xml", | ||
"-J-XX:+PrintGCDetails", | ||
"-J-XX:+PrintGCDateStamps", | ||
s"-J-Xloggc:/var/log/$projectName/gc.log", | ||
"-J-XX:+UseGCLogFileRotation", | ||
"-J-XX:NumberOfGCLogFiles=5", | ||
"-J-XX:GCLogFileSize=2M" | ||
"-J-Xlog:gc*", | ||
s"-J-Xlog:gc:/var/log/$projectName/gc.log" | ||
) | ||
)) | ||
//Add the BBC library dependency if defined | ||
|
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 @@ | ||
sbt.version=1.6.2 | ||
sbt.version=1.10.1 |
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