File tree Expand file tree Collapse file tree 4 files changed +35
-8
lines changed Expand file tree Collapse file tree 4 files changed +35
-8
lines changed Original file line number Diff line number Diff line change
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.1.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" >
3
+ <servers >
4
+ <server >
5
+ <id >gitlab</id >
6
+ <configuration >
7
+ <httpHeaders >
8
+ <property >
9
+ <name >Deploy-Token</name >
10
+ <value >${env.GITLAB_DEPLOY_TOKEN}</value >
11
+ </property >
12
+ </httpHeaders >
13
+ </configuration >
14
+ </server >
15
+ </servers >
16
+ </settings >
Original file line number Diff line number Diff line change 23
23
- name : Build
24
24
run : mvn --batch-mode compile
25
25
26
- - name : Test
27
- run : mvn --batch-mode verify
26
+ - name : Test and package
27
+ run : mvn --batch-mode package
Original file line number Diff line number Diff line change 1
- name : Deploy to Github Packages
1
+ name : Deploy to GitLab Package Repository # Github Packages
2
2
3
3
on :
4
4
release :
22
22
key : ${{ runner.os }}-m2-v8-${{ hashFiles('**/pom.xml') }}
23
23
restore-keys : ${{ runner.os }}-m2-v8
24
24
25
- - name : Deploy to GitHub Packages
25
+ - name : Deploy to GitLab Package Repository # GitHub Packages
26
26
env :
27
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
- run : mvn --batch-mode deploy
27
+ GITLAB_DEPLOY_TOKEN : ${{ secrets.GITLAB_DEPLOY_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
+ run : mvn --batch-mode -s .github/gitlab-mvn-settings.xml deploy
Original file line number Diff line number Diff line change 65
65
<dependency >
66
66
<groupId >com.google.guava</groupId >
67
67
<artifactId >guava</artifactId >
68
- <version >29.0 -jre</version >
68
+ <version >30.1 -jre</version >
69
69
</dependency >
70
70
<dependency >
71
71
<groupId >org.bouncycastle</groupId >
141
141
</plugins >
142
142
</build >
143
143
144
- <!-- For publishing the library to GitHub Packages -->
144
+ <!-- For publishing the library to GitHub Packages/GitLab Package Repository -->
145
145
<distributionManagement >
146
+ <!-- Github Packages does not currently support public access, so disabled until it does.
147
+ See https://github.community/t/download-from-github-package-registry-without-authentication/14407
146
148
<repository>
147
149
<id>github</id>
148
150
<url>https://maven.pkg.github.com/web-eid/web-eid-authtoken-validation-java</url>
151
153
<id>github</id>
152
154
<url>https://maven.pkg.github.com/web-eid/web-eid-authtoken-validation-java</url>
153
155
</snapshotRepository>
156
+ -->
157
+ <repository >
158
+ <id >gitlab</id >
159
+ <url >https://gitlab.com/api/v4/projects/19948337/packages/maven</url >
160
+ </repository >
161
+ <snapshotRepository >
162
+ <id >gitlab</id >
163
+ <url >https://gitlab.com/api/v4/projects/19948337/packages/maven</url >
164
+ </snapshotRepository >
154
165
</distributionManagement >
155
166
156
167
</project >
You can’t perform that action at this time.
0 commit comments