@@ -10,10 +10,11 @@ jobs:
1010 steps :
1111 - uses : actions/checkout@v2
1212
13- - name : Set up JDK 1. 8
14- uses : actions/setup-java@v1
13+ - name : Set up JDK 8
14+ uses : actions/setup-java@v2
1515 with :
16- java-version : 1.8
16+ java-version : ' 8'
17+ distribution : ' adopt'
1718
1819 - name : Cache local Maven repository
1920 uses : actions/cache@v2
@@ -116,10 +117,11 @@ jobs:
116117 git config --global user.name "GitHub Actions"
117118 git pull
118119
119- - name : Set up JDK 1. 8 Apache Maven Central
120- uses : actions/setup-java@v1
120+ - name : Set up JDK 8 Apache Maven Central
121+ uses : actions/setup-java@v2
121122 with : # running setup-java again overwrites the settings.xml
122- java-version : 1.8
123+ java-version : ' 8'
124+ distribution : ' adopt'
123125 server-id : ossrh
124126 server-username : MAVEN_CENTRAL_USERNAME
125127 server-password : MAVEN_CENTRAL_TOKEN
@@ -146,10 +148,11 @@ jobs:
146148 git config --global user.name "GitHub Actions"
147149 git pull
148150
149- - name : Set up JDK 1. 8
150- uses : actions/setup-java@v1
151+ - name : Set up JDK 8
152+ uses : actions/setup-java@v2
151153 with :
152- java-version : 1.8
154+ java-version : ' 8'
155+ distribution : ' adopt'
153156
154157 - name : Build for Vaadin Directory
155158 run : mvn -B install -Pdirectory
@@ -192,9 +195,10 @@ jobs:
192195 git pull
193196
194197 - name : Setup - Java
195- uses : actions/setup-java@v1
198+ uses : actions/setup-java@v2
196199 with :
197- java-version : 1.8
200+ java-version : ' 8'
201+ distribution : ' adopt'
198202
199203 - name : Restore - Maven Cache
200204 uses : actions/cache@v1
0 commit comments