Skip to content

Commit 65a711e

Browse files
committed
release 4.1.0 + gutHub update
1 parent b2a5b0c commit 65a711e

4 files changed

Lines changed: 76 additions & 58 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
1-
name: exemple build with Maven
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
23

3-
on:
4-
push:
5-
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
4+
name: Maven Package build
5+
6+
on: [ push, pull_request, workflow_dispatch ]
87

98
jobs:
109
build:
1110

1211
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
1315

1416
steps:
15-
- uses: actions/checkout@v4
16-
- name: Set up JDK 17
17-
uses: actions/setup-java@v4
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v2
1820
with:
19-
java-version: '17'
20-
distribution: 'temurin'
21-
cache: maven
21+
java-version: '21'
22+
distribution: 'adopt'
2223

2324
- name: Build with Maven
2425
env:
25-
GH_MAVEN_REGISTRY_USER: ${{ secrets.PRIVATE_ACCESS_TOKEN_USER }}
26-
GH_MAVEN_REGISTRY_ACCESS_TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }}
27-
run: mvn -s settings.xml install
28-
29-
- name: Deploy to registry
30-
env:
31-
GH_MAVEN_REGISTRY_USER: ${{ secrets.PRIVATE_ACCESS_TOKEN_USER }}
32-
GH_MAVEN_REGISTRY_ACCESS_TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }}
33-
run: mvn --batch-mode -e -X -s settings.xml deploy -DskipTests
26+
GH_MAVEN_REGISTRY_USER: ${{ secrets.GH_MAVEN_REGISTRY_USER }}
27+
GH_MAVEN_REGISTRY_ACCESS_TOKEN: ${{ secrets.GH_MAVEN_REGISTRY_ACCESS_TOKEN }}
28+
run: mvn -s settings.xml -B package
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Maven Package deploy
5+
6+
on:
7+
release:
8+
types: [ created ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: '21'
24+
distribution: 'adopt'
25+
26+
- name: Build with Maven
27+
env:
28+
GH_MAVEN_REGISTRY_USER: ${{ secrets.GH_MAVEN_REGISTRY_USER }}
29+
GH_MAVEN_REGISTRY_ACCESS_TOKEN: ${{ secrets.GH_MAVEN_REGISTRY_ACCESS_TOKEN }}
30+
run: mvn -B package -s settings.xml
31+
32+
- name: Publish to GitHub Packages Apache Maven
33+
env:
34+
GH_MAVEN_REGISTRY_USER: ${{ secrets.GH_MAVEN_REGISTRY_USER }}
35+
GH_MAVEN_REGISTRY_ACCESS_TOKEN: ${{ secrets.GH_MAVEN_REGISTRY_ACCESS_TOKEN }}
36+
run: mvn deploy -s settings.xml

settings.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
<settings>
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">
23
<servers>
34
<server>
4-
<id>github</id>
5-
<username>${env.GH_MAVEN_REGISTRY_USER}</username>
6-
<password>${env.GH_MAVEN_REGISTRY_ACCESS_TOKEN}</password>
7-
</server>
8-
<server>
9-
<id>github-marc</id>
5+
<id>github-globsframework</id>
106
<username>${env.GH_MAVEN_REGISTRY_USER}</username>
117
<password>${env.GH_MAVEN_REGISTRY_ACCESS_TOKEN}</password>
128
</server>

simplest/pom.xml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,21 @@
77
<packaging>jar</packaging>
88
<artifactId>simplest</artifactId>
99
<name>sample of a exposing api</name>
10-
<version>4.1-SNAPSHOT</version>
10+
<version>4.1.0</version>
1111

1212
<repositories>
1313
<repository>
14-
<id>github-marc</id>
15-
<url>https://maven.pkg.github.com/MarcGuiot/*</url>
16-
</repository>
17-
<repository>
18-
<id>central</id>
19-
<url>https://repo1.maven.org/maven2</url>
14+
<id>github-globsframework</id>
15+
<url>https://maven.pkg.github.com/globsframework/*</url>
2016
</repository>
2117
</repositories>
2218

2319
<distributionManagement>
2420
<repository>
25-
<id>github</id>
21+
<id>github-globsframework</id>
2622
<name>GitHub Packages</name>
2723
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
2824
</repository>
29-
<snapshotRepository>
30-
<id>github</id>
31-
<name>GitHub Packages</name>
32-
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
33-
</snapshotRepository>
3425
</distributionManagement>
3526

3627
<build>
@@ -132,17 +123,17 @@
132123
<dependency>
133124
<groupId>org.globsframework</groupId>
134125
<artifactId>globs</artifactId>
135-
<version>4.1-SNAPSHOT</version>
126+
<version>4.1.0</version>
136127
</dependency>
137128
<dependency>
138129
<groupId>org.globsframework</groupId>
139130
<artifactId>globs-commandline</artifactId>
140-
<version>4.1-SNAPSHOT</version>
131+
<version>4.1.0</version>
141132
</dependency>
142133
<dependency>
143134
<groupId>org.globsframework</groupId>
144135
<artifactId>globs-http</artifactId>
145-
<version>4.1-SNAPSHOT</version>
136+
<version>4.1.0</version>
146137
<exclusions>
147138
<exclusion>
148139
<groupId>io.etcd</groupId>
@@ -153,7 +144,7 @@
153144
<dependency>
154145
<groupId>org.globsframework</groupId>
155146
<artifactId>globs-sql</artifactId>
156-
<version>4.1-SNAPSHOT</version>
147+
<version>4.1.0</version>
157148
<exclusions>
158149
<exclusion>
159150
<groupId>org.mariadb.jdbc</groupId>
@@ -172,25 +163,24 @@
172163
<dependency>
173164
<groupId>org.globsframework</groupId>
174165
<artifactId>globs-graphql</artifactId>
175-
<version>4.1-SNAPSHOT</version>
166+
<version>4.1.0</version>
176167
</dependency>
168+
177169
<dependency>
178170
<groupId>org.globsframework</groupId>
179171
<artifactId>globs-generate</artifactId>
180-
<version>4.1-SNAPSHOT</version>
172+
<version>4.1.0</version>
181173
</dependency>
182174

183175
<dependency>
184-
<groupId>com.graphql-java</groupId>
185-
<artifactId>graphql-java</artifactId>
186-
<version>21.1</version>
176+
<groupId>com.zaxxer</groupId>
177+
<artifactId>HikariCP</artifactId>
178+
<version>6.0.0</version>
187179
</dependency>
188-
189180
<dependency>
190-
<groupId>junit</groupId>
191-
<artifactId>junit</artifactId>
192-
<version>4.13.2</version>
193-
<scope>test</scope>
181+
<groupId>com.graphql-java</groupId>
182+
<artifactId>graphql-java</artifactId>
183+
<version>21.5</version>
194184
</dependency>
195185
<dependency>
196186
<groupId>org.slf4j</groupId>
@@ -218,9 +208,10 @@
218208
<!-- <version>2.20.0</version>-->
219209
<!-- </dependency>-->
220210
<dependency>
221-
<groupId>com.zaxxer</groupId>
222-
<artifactId>HikariCP</artifactId>
223-
<version>6.0.0</version>
211+
<groupId>junit</groupId>
212+
<artifactId>junit</artifactId>
213+
<version>4.13.2</version>
214+
<scope>test</scope>
224215
</dependency>
225216
</dependencies>
226217

0 commit comments

Comments
 (0)