* Update Java and fix AppVeyor Target Java 16 Run CI using Java 17 Use provided Maven installation instead of relying on mirror link Remove Java 7 memory limitation settings * Fix Jitpack build for Java > 8 Jitpack uses Java 8 by default. While their (very minimal) explanation of settings suggests specifying `jdk: [ openjdk17 ]` would be enough, it does not appear to work. Not sure if that's just an issue with their image not including JDK17 yet or something, but this does function.
30 lines
628 B
YAML
30 lines
628 B
YAML
version: '{build}'
|
|
skip_tags: true
|
|
clone_depth: 10
|
|
environment:
|
|
matrix:
|
|
- appveyor_build_worker_image: Visual Studio 2022
|
|
JAVA_HOME: C:\Program Files\Java\jdk17
|
|
branches:
|
|
only:
|
|
- master
|
|
- dev/v20
|
|
except:
|
|
- gh-pages
|
|
init:
|
|
- cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
|
|
install:
|
|
- cmd: SET MAVEN_OPTS=-Xmx4g
|
|
- cmd: SET JAVA_OPTS=-Xmx4g
|
|
- cmd: mvn --version
|
|
- cmd: java -version
|
|
build_script:
|
|
- mvn clean package -B -Dmaven.test.skip=true
|
|
test_script:
|
|
- mvn clean install --batch-mode -Pqulice
|
|
cache:
|
|
- C:\Users\appveyor\.m2
|
|
artifacts:
|
|
- path: target/GriefPrevention.jar
|
|
name: GriefPrevention
|