-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct AppVeyor build for Java 7 and 11
Simplify build configuration and use default Maven version
- Loading branch information
1 parent
a95178e
commit ffaa5c7
Showing
2 changed files
with
9 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
version: '{build}' | ||
image: | ||
- Visual Studio 2017 | ||
skip_tags: true | ||
clone_depth: 10 | ||
environment: | ||
matrix: | ||
- JAVA_HOME: C:\Program Files\Java\jdk1.7.0 | ||
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0 | ||
- JAVA_HOME: C:\Program Files\Java\jdk11.0 | ||
- JAVA_HOME: C:\Program Files\Java\jdk11 | ||
|
||
install: | ||
- ps: | | ||
Add-Type -AssemblyName System.IO.Compression.FileSystem | ||
if (!(Test-Path -Path "C:\maven" )) { | ||
(new-object System.Net.WebClient).DownloadFile('https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip', 'C:\maven-bin.zip') | ||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven") | ||
} | ||
# Prepend Java entry, remove Ruby entry (C:\Ruby193\bin;) from PATH | ||
- cmd: SET PATH=C:\maven\apache-maven-3.6.0\bin;%JAVA_HOME%\bin;%PATH:C:\Ruby193\bin;=% | ||
- cmd: SET MAVEN_OPTS=-Xmx768m | ||
- cmd: mvn --version | ||
- cmd: java -version | ||
build_script: | ||
- mvn -B clean verify | ||
- mvn -B -V clean verify -Dhttps.protocols=TLSv1.2 | ||
cache: | ||
- C:\Users\appveyor\.m2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters