Upgrades to actions/setup-java@v2
Closes #33
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 2042534..19d5767 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -28,8 +28,8 @@
         experimental: [false]
         include:
           - java: 17-ea
-            experimental: true        
-        
+            experimental: true
+
     steps:
     - uses: actions/checkout@v2.3.4
     - uses: actions/cache@v2.1.4
@@ -39,8 +39,9 @@
         restore-keys: |
           ${{ runner.os }}-maven-
     - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@v1.4.3
+      uses: actions/setup-java@v2
       with:
+        distribution: adopt
         java-version: ${{ matrix.java }}
     - name: Build with Maven
       run: mvn -V -Ddoclint=all --file pom.xml --no-transfer-progress