Update `actions/setup-java` to v2.
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 1e644ae..688861f 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 -B --file pom.xml --no-transfer-progress
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index a82dc8b..d0c4a54 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -26,6 +26,9 @@
         <action dev="ggregory" type="update" due-to="Gary Gregory">
             Update commons.japicmp.version 0.11.0 -> 0.15.3.
         </action>
+        <action type="update" dev="ggregory" due-to="Gary Gregory">
+            Bump actions/setup-java from v1.4.0 to v2.
+        </action>
     </release>
     <release version="0.5.0" date="2017-11-19" description="Minor feature and bug fix release.">
         <action type="fix" issue="COMMONSRDF-47">