Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# NOTE(olafurpg) Windows is not enabled because it times out due to reasons I don't understand.
# os: [windows-latest, ubuntu-latest]
os: [ubuntu-latest]
java: [8, 11, 17, 21]
java: [8, 11, 17, 21, 25]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
with:
distribution: "temurin"
cache: "sbt"
java-version: 17
java-version: 25

- uses: sbt/setup-sbt@v1

Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
with:
distribution: "temurin"
cache: "sbt"
java-version: 17
java-version: 25

- uses: sbt/setup-sbt@v1

Expand All @@ -123,7 +123,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 11
java-version: 25
cache: "sbt"

- uses: sbt/setup-sbt@v1
Expand All @@ -140,7 +140,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [8, 11, 17, 21]
java: [8, 11, 17, 21, 25]
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17@sha256:6eca72bb4cd5fb8cd215f2579a4dfffd24b0f47effb6c868b7e92b7f0422fa9f
FROM eclipse-temurin:25

RUN apt-get update && apt-get install --yes jq wget curl zip unzip git python3 python3-pip autoconf automake libtool build-essential libtool make g++

Expand Down
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,17 @@ lazy val minimized21 = project
.dependsOn(agent, javacPlugin)
.disablePlugins(JavaFormatterPlugin)

lazy val minimized25 = project
.in(file("tests/minimized/.j25"))
.settings(
javaOnlySettings,
minimizedSettings,
javaToolchainVersion := "25",
javacOptions ++= javacModuleOptions
)
.dependsOn(agent, javacPlugin)
.disablePlugins(JavaFormatterPlugin)

lazy val minimizedScala = project
.in(file("tests/minimized-scala"))
.settings(
Expand Down
2 changes: 1 addition & 1 deletion project/JavaToolchainPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object JavaToolchainPlugin extends AutoPlugin {
javacOptions ++= bootclasspathSettings(javaToolchainVersion.value),
javaOptions ++= bootclasspathSettings(javaToolchainVersion.value),
fork := true,
javaToolchainVersion := "11",
javaToolchainVersion := "25",
javaToolchainJvmIndex := None,
javaHome :=
Some(getJavaHome(javaToolchainVersion.value, javaToolchainJvmIndex.value))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ class ScipBuildTool(index: IndexCommand) extends BuildTool("SCIP", index) {
processors: List[String] = Nil,
javacOptions: List[String] = Nil,
jvmOptions: List[String] = Nil,
jvm: String = "17",
jvm: String = "25",
kind: String = ""
)
private object Config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class JavaVersion {
public static final int JAVA8_VERSION = 8;
public static final int JAVA11_VERSION = 11;
public static final int JAVA17_VERSION = 17;
public static final int JAVA21_VERSION = 21;
public static final int JAVA25_VERSION = 25;
public static final int DEFAULT_JAVA_VERSION = JAVA8_VERSION;

@SuppressWarnings("FieldCanBeLocal")
Expand All @@ -49,6 +51,8 @@ public static int roundToNearestStableRelease(int version) {
if (version <= JAVA8_VERSION) return JAVA8_VERSION;
if (version <= JAVA11_VERSION) return JAVA11_VERSION;
if (version <= JAVA17_VERSION) return JAVA17_VERSION;
if (version <= JAVA21_VERSION) return JAVA21_VERSION;
if (version <= JAVA25_VERSION) return JAVA25_VERSION;
return version;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Gradle_5_BuildToolSuite extends GradleBuildToolSuite(Gradle5)

abstract class GradleBuildToolSuite(gradle: Tool.Gradle)
extends GradleBuildToolSuiteBase(gradle) {
val allJava = List(8, 11, 17, 21)
val allJava = List(8, 11, 17, 21, 25)

checkGradleBuild(
"annotation-path",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/src/test/scala/tests/JavaVersionSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ class JavaVersionSuite extends FunSuite {

checkVersion("1.8.0_272", "8")
checkVersion("11.0.9", "11")
checkVersion("25.0.2", "25")

}
Loading