version: '{build}'

skip_tags: true

environment:
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0

install:
  - ps: |
      Add-Type -AssemblyName System.IO.Compression.FileSystem
      if (!(Test-Path -Path "C:\maven" )) {
        (new-object System.Net.WebClient).DownloadFile('http://www.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.zip', 'C:\maven-bin.zip')
        [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
      }
  - cmd: SET MAVEN_HOME=C:\maven\apache-maven-3.5.0
  - cmd: SET PATH=%MAVEN_HOME%\bin;%JAVA_HOME%\bin;%PATH%
  - cmd: mvn --version
  - cmd: java -version

build_script:
  - mvn clean verify -B

cache:
  - C:\maven
  - C:\Users\appveyor\.m2
version: '{build}'

skip_tags: true

environment:
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0

install:
  - ps: |
      Add-Type -AssemblyName System.IO.Compression.FileSystem
      if (!(Test-Path -Path "C:\maven" )) {
        (new-object System.Net.WebClient).DownloadFile('http://www.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.zip', 'C:\maven-bin.zip')
        [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
      }
  - cmd: SET MAVEN_HOME=C:\maven\apache-maven-3.5.0
  - cmd: SET PATH=%MAVEN_HOME%\bin;%JAVA_HOME%\bin;%PATH%
  - cmd: mvn --version
  - cmd: java -version

before_build:
  - ps: .\install-plugin-api.ps1

build_script:
  - mvn clean verify -B

cache:
  - C:\maven
  - C:\Users\appveyor\.m2

Install Plugin API before starting the build process.
Install Plugin API before starting the build process.