Skip to content

Commit fe16fea

Browse files
authored
Merge pull request #107 from AVSystem/jdk-25
Add Java 25 support
2 parents 95d6713 + c56da5f commit fe16fea

3 files changed

Lines changed: 22 additions & 12 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
os: [ubuntu-latest]
2626
scala: [2.13.16]
27-
java: [temurin@17, temurin@21]
27+
java: [temurin@17, temurin@21, temurin@25]
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- name: Checkout current branch (full)
@@ -48,6 +48,14 @@ jobs:
4848
java-version: 21
4949
cache: sbt
5050

51+
- name: Setup Java (temurin@25)
52+
if: matrix.java == 'temurin@25'
53+
uses: actions/setup-java@v5
54+
with:
55+
distribution: temurin
56+
java-version: 25
57+
cache: sbt
58+
5159
- name: Setup sbt
5260
uses: sbt/setup-sbt@v1
5361

@@ -98,6 +106,14 @@ jobs:
98106
java-version: 21
99107
cache: sbt
100108

109+
- name: Setup Java (temurin@25)
110+
if: matrix.java == 'temurin@25'
111+
uses: actions/setup-java@v5
112+
with:
113+
distribution: temurin
114+
java-version: 25
115+
cache: sbt
116+
101117
- name: Setup sbt
102118
uses: sbt/setup-sbt@v1
103119

‎build.sbt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inThisBuild(Seq(
44
organization := "com.avsystem.scex",
55
scalaVersion := "2.13.16",
66
githubWorkflowTargetTags ++= Seq("v*"),
7-
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"), JavaSpec.temurin("21")),
7+
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"), JavaSpec.temurin("21"), JavaSpec.temurin("25")),
88
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
99

1010
githubWorkflowPublish := Seq(WorkflowStep.Sbt(
@@ -84,7 +84,9 @@ lazy val subprojectSettings = Seq(
8484
Test / javaOptions += "-Xmx1G",
8585
Test / outputStrategy := Some(LoggedOutput(new Logger {
8686
def log(level: Level.Value, message: => String): Unit = ()
87+
8788
def success(message: => String): Unit = ()
89+
8890
def trace(t: => Throwable): Unit = ()
8991
})),
9092
libraryDependencies ++= Seq(

‎scex-core/src/test/scala/com/avsystem/scex/compiler/CompilationTest.scala‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ import com.avsystem.scex.validation.SymbolValidator.MemberAccessSpec
1111
import com.avsystem.scex.validation.{SymbolValidator, SyntaxValidator}
1212
import org.scalatest.{BeforeAndAfterAll, Suite}
1313

14-
import scala.reflect.io.AbstractFile
1514
import scala.util.control.NonFatal
1615

17-
/**
18-
* Created: 18-11-2013
19-
* Author: ghik
20-
*/
2116
trait CompilationTest extends BeforeAndAfterAll { this: Suite =>
2217

2318
val compiler = createCompiler
@@ -28,11 +23,8 @@ trait CompilationTest extends BeforeAndAfterAll { this: Suite =>
2823
new DefaultJavaScexCompiler(settings)
2924
}
3025

31-
override protected def beforeAll() = {
32-
val classfileDir = AbstractFile.getDirectory(compiler.settings.classfileDirectory.value)
33-
if (classfileDir != null) {
34-
classfileDir.delete()
35-
}
26+
override protected def beforeAll(): Unit = {
27+
compiler.settings.resolvedClassfileDir.foreach(_.delete())
3628
}
3729

3830
def catchAndPrint(code: => Any): Unit =

0 commit comments

Comments
 (0)