cache:
  - C:\Users\appveyor\.m2 -> **\pom.xml

install:
  - mkdir .jdk
  - curl -L "https://api.azul.com/zulu/download/community/v1.0/bundles/latest/binary/?jdk_version=17&ext=zip&os=windows&arch=x86&hw_bitness=64&javafx=false&bundle_type=jdk" -o .jdk/jdk.zip
  - unzip -d .jdk .jdk/jdk.zip
  - mv .jdk/*/* .jdk
  - .jdk\bin\java -version
  - SET JAVA_HOME=%CD%\.jdk

build_script:
  # generation of Javadocs requires Java <= 6 (https://github.com/jacoco/jacoco/issues/110)
  - mvn -V -B -e verify -Djdk.version=6 -Dbytecode.version=5 --toolchains=.travis\appveyor-toolchains.xml

artifacts:
  - path: jacoco\target\*.zip
