diff --git a/.github/settings.xml b/.github/settings.xml new file mode 100644 index 0000000000..d2ef38992d --- /dev/null +++ b/.github/settings.xml @@ -0,0 +1,14 @@ + + + + jboss-public-repository-group-https + jboss-public-repository-group + Jboss public https + https://repository.jboss.org/nexus/content/groups/public/ + + + + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9d069e16c..7dda11327f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,6 @@ name: Keycloak CI on: [push, pull_request] -env: - # workaround for Maven >= 3.8.1 (see KEYCLOAK-17812) - MVN_MIRRORS: '[{ "id": "jboss-public-repository-group-https", "mirrorOf": "jboss-public-repository-group", "url": "https://repository.jboss.org/nexus/content/groups/public/" }]' - jobs: build: name: Build @@ -15,9 +11,8 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 - with: - mirrors: ${{ env.MVN_MIRRORS }} + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Cache Maven packages id: cache uses: actions/cache@v2 @@ -59,9 +54,8 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 - with: - mirrors: ${{ env.MVN_MIRRORS }} + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Cache Maven packages uses: actions/cache@v2 with: @@ -101,9 +95,8 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 - with: - mirrors: ${{ env.MVN_MIRRORS }} + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Cache Maven packages uses: actions/cache@v2 with: @@ -168,9 +161,8 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 - with: - mirrors: ${{ env.MVN_MIRRORS }} + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Run base tests run: | @@ -233,10 +225,9 @@ jobs: if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 + - name: Update maven settings if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} - with: - mirrors: ${{ env.MVN_MIRRORS }} + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Run cluster tests if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} @@ -273,10 +264,9 @@ jobs: if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 + - name: Update maven settings if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} - with: - mirrors: ${{ env.MVN_MIRRORS }} + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Cache Maven packages if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} @@ -347,9 +337,8 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 - with: - mirrors: ${{ env.MVN_MIRRORS }} + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Run Quarkus cluster tests run: | echo '::group::Compiling testsuite' @@ -386,10 +375,8 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 - - uses: whelk-io/maven-settings-xml-action@v15 - with: - mirrors: ${{ env.MVN_MIRRORS }} - + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ - name: Cache Maven packages uses: actions/cache@v2 with: @@ -425,4 +412,4 @@ jobs: retention-days: 2 path: | test-logs - keycloak.log \ No newline at end of file + keycloak.log diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 15059b0175..f61d9d749f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,6 +32,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Update maven settings + run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/ + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1