From bdf4bb78867548624bb6ac380ca588c627d95eff Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Mon, 5 Apr 2021 19:58:46 +0200 Subject: [PATCH] use setup-java v2 (#19) --- .github/workflows/maven.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7cd18d9..b769bee 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,9 +10,10 @@ jobs: - name: Git Clone uses: actions/checkout@v2 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 11 + distribution: 'adopt' + java-version: '11' server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_PASSWORD # env variable for token in deploy