|
35 | 35 | java-version: ${{ inputs.java-version }} |
36 | 36 | check-latest: true |
37 | 37 | - name: Set up Maven |
38 | | - uses: stCarolas/setup-maven@v5 |
| 38 | + uses: stCarolas/setup-maven@v5.1 |
39 | 39 | with: |
40 | 40 | maven-version: ${{ inputs.maven-version }} |
41 | 41 | - name: Cache Maven packages |
|
46 | 46 | restore-keys: ${{ inputs.cache-key-prefix }}-m2 |
47 | 47 | - name: Setup Maven Settings |
48 | 48 | if: ${{ inputs.setup-maven-settings == 'true' }} |
49 | | - uses: whelk-io/maven-settings-xml-action@v22 |
| 49 | + uses: s4u/maven-settings-action@v4.0.0 |
50 | 50 | with: |
51 | 51 | repositories: > |
52 | 52 | [ |
@@ -76,40 +76,12 @@ runs: |
76 | 76 | "updatePolicy": "never" |
77 | 77 | } |
78 | 78 | } |
79 | | - ] |
80 | | - plugin_repositories: > |
81 | | - [ |
82 | | - { |
83 | | - "id": "jboss-public-repository-group", |
84 | | - "name": "JBoss Public Repository Group", |
85 | | - "url": "https://repository.jboss.org/nexus/content/groups/public", |
86 | | - "releases": { |
87 | | - "enabled": "true", |
88 | | - "updatePolicy": "never" |
89 | | - }, |
90 | | - "snapshots": { |
91 | | - "enabled": "${{ inputs.allow-snapshots }}", |
92 | | - "updatePolicy": "never" |
93 | | - } |
94 | | - }, |
95 | | - { |
96 | | - "id": "kogito-staging-repository-group", |
97 | | - "name": "Kogito Staging Repositories", |
98 | | - "url": "https://repository.jboss.org/nexus/content/groups/kogito-public", |
99 | | - "releases": { |
100 | | - "enabled": "true", |
101 | | - "updatePolicy": "never" |
102 | | - }, |
103 | | - "snapshots": { |
104 | | - "enabled": "${{ inputs.allow-snapshots }}", |
105 | | - "updatePolicy": "never" |
106 | | - } |
107 | | - } |
108 | | - ] |
109 | | - plugin_groups: > |
110 | | - [ |
111 | | - "org.zanata" |
112 | | - ] |
| 79 | + ] |
| 80 | + - name: Add plugin groups |
| 81 | + shell: bash |
| 82 | + run: | |
| 83 | + sed -i '/<\/settings>/i\ <pluginGroups>\n <pluginGroup>org.zanata</pluginGroup>\n </pluginGroups>' ~/.m2/settings.xml |
| 84 | + |
113 | 85 | - name: Debug settings.xml |
114 | 86 | if: ${{ inputs.debug }} |
115 | 87 | shell: bash |
|
0 commit comments