Skip to content

Commit 858a3b0

Browse files
committed
Update to use Java 25
1 parent ae3214f commit 858a3b0

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

.bach/src/run.bach/run/Project.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public record Project(boolean verbose, Workflow workflow) implements Builder, St
2020
static Project ofCurrentWorkingDirectory() {
2121
var verbose = Boolean.getBoolean("-Debug".substring(2));
2222
var folders = Folders.ofCurrentWorkingDirectory();
23-
var basics = new Basics("Bach", "2024-ea");
23+
var basics = new Basics("Bach", "2025-ea");
2424
var main =
2525
new Space("main")
26-
.withTargetingJavaRelease(22)
26+
.withTargetingJavaRelease(25)
2727
.withLauncher("bach=run.bach/run.bach.Main")
2828
.withModule(".bach/src/run.bach", ".bach/src/run.bach/module-info.java")
2929
.with(Space.Flag.COMPILE_RUNTIME_IMAGE);

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
uses: oracle-actions/setup-java@v1
2222
with:
2323
website: jdk.java.net
24-
release: 24
24+
release: 25
2525
- name: 'Print various versions'
2626
run: |
2727
java @bach jar --version
2828
java @bach jfr --version
29-
java @bach https://raw.githubusercontent.com/openjdk/jdk/refs/heads/jdk24/test/jdk/java/lang/System/Versions.java
29+
java @bach https://raw.githubusercontent.com/openjdk/jdk/refs/heads/jdk25/test/jdk/java/lang/System/Versions.java
3030
java .bach/src/run.bach/run/demo/ToolVersionsDemo.java
3131
- name: 'Build Bach with Bach'
3232
run: java @build

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bach.run/Bach.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
// TODO import module java.base;
77

8-
import java.io.*;
9-
import java.net.*;
10-
import java.nio.file.*;
11-
import java.util.*;
8+
import module java.base;
129

1310
@SuppressWarnings("unused")
1411
interface Bach {

0 commit comments

Comments
 (0)