Skip to content

Commit

Permalink
Merge pull request #617 from xuwei-k/jdk-21-test
Browse files Browse the repository at this point in the history
add JDK 21 test
  • Loading branch information
eed3si9n authored Oct 5, 2023
2 parents 0440b7e + 6c74d84 commit 506c9af
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 10 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
include:
- os: ubuntu-latest
java: 8
distribution: 'temurin'
- os: ubuntu-latest
java: 21
distribution: 'corretto'
runs-on: ${{ matrix.os }}
env:
# define Java options for both official sbt and sbt-extras
Expand All @@ -21,10 +25,20 @@ jobs:
- name: Setup JVM
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
cache: 'sbt'
- name: Build and test
run: |
sbt -v ++2.12.17! "scalaxbPlugin/scripted"
sbt -v +integration/test
case ${{ matrix.java }} in
"8")
sbt -v ++2.12.x "scalaxbPlugin/scripted"
sbt -v +integration/test
;;
"21")
sbt -v ++2.12.x "project scalaxbPlugin" "set pluginCrossBuild / sbtVersion := sbtVersion.value" "scripted"
;;
*)
echo "unexpected java version"
exit 1
esac
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ lazy val scalaxbPlugin = (project in file("sbt-scalaxb"))
}
}
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + version.value)
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
}
scriptedBufferLog := false
scripted := scripted.dependsOn(app / publishLocal).evaluated
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.6
6 changes: 4 additions & 2 deletions project/dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import sbt._

object Dependencies {
val scala213 = "2.13.10"
val scala212 = "2.12.17"
val scala213 = "2.13.12"
val scala212 = "2.12.18"
val scala211 = "2.11.12"
val scala210 = "2.10.7"

val jaxb = "javax.xml.bind" % "jaxb-api" % "2.3.1"
val scopt = "com.github.scopt" %% "scopt" % "3.7.1"
val log4j = "log4j" % "log4j" % "1.2.17"
val defaultDispatchVersion = "1.0.1"
Expand Down Expand Up @@ -61,6 +62,7 @@ object Dependencies {

def appDependencies(sv: String) = Seq(
launcherInterface % "provided",
jaxb % "provided",
scopt,
log4j
) ++ (sv match {
Expand Down
5 changes: 3 additions & 2 deletions sbt-scalaxb/src/sbt-test/sbt-scalaxb/address/build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
val scalaParser = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1"
val jaxbApi = "javax.xml.bind" % "jaxb-api" % "2.3.1"

lazy val root = (project in file(".")).
enablePlugins(ScalaxbPlugin).
settings(
scalaVersion := "2.12.8",
scalaVersion := "2.12.18",
name := "mavenxsd",
scalaxbAutoPackages in (Compile, scalaxb) := true,
scalaxbGenerateMutable in (Compile, scalaxb) := true,
libraryDependencies ++= Seq(scalaXml, scalaParser)
libraryDependencies ++= Seq(scalaXml, scalaParser, jaxbApi)
)
2 changes: 1 addition & 1 deletion sbt-scalaxb/src/sbt-test/sbt-scalaxb/soap/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lazy val emberClient= "org.http4s" %% "http4s-ember-client" % http4sVersion

organization in ThisBuild := "com.example"
version in ThisBuild := "0.1.0-SNAPSHOT"
scalaVersion in ThisBuild := "2.13.10"
scalaVersion in ThisBuild := "2.13.12"
scalaxbPackageName in ThisBuild := "generated"
scalaxbGenerateDispatchClient in ThisBuild := false
scalaxbGenerateHttp4sClient in ThisBuild := true
Expand Down

0 comments on commit 506c9af

Please sign in to comment.