Update `actions/setup-java` to v2.
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index ebb1813..9110a06 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 -e --file pom.xml --no-transfer-progress
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c58a5bf..e93268f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -134,6 +134,9 @@
       <action issue="CHAIN-47" dev="elijah" type="fix">
         WebContext, ServletWebContext are now interfaces
       </action>
+      <action type="update" dev="ggregory" due-to="Gary Gregory">
+        Bump actions/setup-java from v1.4.3 to v2.
+      </action>
     </release>
 
     <release version="1.2" date="2008-06-02" description="OSGi enabled / minor bug fixes">