Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add JDK 21 test #617

Merged
merged 1 commit into from
Oct 5, 2023
Merged
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
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'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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