-
Notifications
You must be signed in to change notification settings - Fork 18
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
5 changed files
with
14 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,10 @@ jobs: | |
- name: Cache Coursier cache | ||
uses: coursier/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 11 | ||
uses: coursier/[email protected] | ||
with: | ||
jvm: temurin:1.8.0 | ||
jvm: temurin:1.11.0 | ||
|
||
- name: Code style check, compilation and binary-compatibility check | ||
run: |- | ||
|
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 |
---|---|---|
|
@@ -24,10 +24,10 @@ jobs: | |
- name: Cache Coursier cache | ||
uses: coursier/[email protected] | ||
|
||
- name: Set up JDK 8 | ||
- name: Set up JDK 11 | ||
uses: coursier/[email protected] | ||
with: | ||
jvm: adopt:1.8.0-275 | ||
jvm: temurin:1.11.0.17 | ||
|
||
- name: Publish | ||
run: |- | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,8 @@ def common: Seq[Setting[_]] = | |
scalafmtOnCompile := true, | ||
sonatypeProfileName := "com.lightbend", | ||
// Setting javac options in common allows IntelliJ IDEA to import them automatically | ||
Compile / javacOptions ++= Seq("-encoding", "UTF-8", "-source", "1.8", "-target", "1.8"), | ||
Compile / javacOptions ++= Seq("-encoding", "UTF-8", "--release", "11"), | ||
Compile / scalacOptions ++= Seq("-release", "11"), | ||
headerLicense := Some( | ||
HeaderLicense.Custom("""Copyright (C) 2022 - 2023 Lightbend Inc. <https://www.lightbend.com>""")), | ||
Test / logBuffered := false, | ||
|
@@ -161,3 +162,10 @@ lazy val docs = project | |
resolvers += Resolver.jcenterRepo, | ||
publishRsyncArtifacts += makeSite.value -> "www/", | ||
publishRsyncHost := "[email protected]") | ||
|
||
val isJdk11orHigher: Boolean = { | ||
val result = VersionNumber(sys.props("java.specification.version")).matchesSemVer(SemanticSelector(">=11")) | ||
if (!result) | ||
throw new IllegalArgumentException("JDK 11 or higher is required") | ||
result | ||
} |
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