sudo: false

language: scala
jdk:
  - openjdk8  # baseline
  - openjdk9  # Jigsaw / module JAXB and javax.annotation bundled
  - openjdk10 # Jigsaw / module JAXB and javax.annotation bundled
  - openjdk11 # LTS / modules no longer bundled
  - openjdk12

script:
  - sbt disableIncompatibleTests scripted docs/mdoc

cache:
  directories:
    - $HOME/.sbt
    - $HOME/.ivy2/cache
    - $HOME/.cache/coursier

before_cache:
  - find $HOME/.sbt -name "*.lock" -print -delete
  - rm -fv $HOME/.ivy2/.sbt.ivy.lock
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
  - find $HOME/.ivy2/cache -name "*-SNAPSHOT*" -print -delete
  - find $HOME/.cache/coursier -name "*-SNAPSHOT*" -print -delete

sudo: false

language: scala
jdk:
  - openjdk8  # baseline
  - openjdk9  # Jigsaw / module JAXB and javax.annotation bundled
  - openjdk11 # LTS / modules no longer bundled
  - openjdk17 # LTS

script:
  - sbt disableIncompatibleTests scripted docs/mdoc

cache:
  directories:
    - $HOME/.sbt
    - $HOME/.ivy2/cache
    - $HOME/.cache/coursier

before_cache:
  - find $HOME/.sbt -name "*.lock" -print -delete
  - rm -fv $HOME/.ivy2/.sbt.ivy.lock
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
  - find $HOME/.ivy2/cache -name "*-SNAPSHOT*" -print -delete
  - find $HOME/.cache/coursier -name "*-SNAPSHOT*" -print -delete

Add JDK 17 to CI matrix and drop JDK 10/12
Add JDK 17 to CI matrix and drop JDK 10/12
