Update actions/setup-java to v2
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 2042534..d108bb7 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -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
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 829e947..ee31b12 100755
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -30,7 +30,7 @@
       <action type="update" dev="kinow">Bump maven-pmd-plugin from 3.13.0 to 3.14.0 #29.</action>
       <action type="update" dev="kinow">Bump commons-build-plugin from 1.11 to 1.12 #25.</action>
       <action issue="COMMONSSITE-138" type="add" dev="chtompki, ggregory">Create signature validation script for releases.</action>
-      <action type="update" dev="kinow">Bump actions/setup-java from v1.4.0 to v1.4.3 #11 #19.</action>
+      <action type="update" dev="kinow">Bump actions/setup-java from v1.4.0 to v2 #11 #19 #49.</action>
       <action type="update" dev="kinow">Bump spotbugs from 4.1.1 to 4.2.2 #10 #24 #30 #37 #41.</action>
       <action type="update" dev="kinow">Bump spotbugs-maven-plugin from 4.1.1 to 4.2.2 #20 #26 #33 #45.</action>
       <action type="update" dev="sebb">Fail if commons.nexus.repo.id is not defined.</action>