Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit 30e3c97

Browse files
authored
Merge pull request #38 from xdev-software/develop
1.1.1
2 parents 4cbe5fb + 0d08499 commit 30e3c97

File tree

11 files changed

+44
-29
lines changed

11 files changed

+44
-29
lines changed

.github/workflows/checkBuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
java: [17]
24+
java: [17, 21]
2525
distribution: [temurin]
2626

2727
steps:
2828
- uses: actions/checkout@v4
2929

3030
- name: Set up JDK
31-
uses: actions/setup-java@v3
31+
uses: actions/setup-java@v4
3232
with:
3333
distribution: ${{ matrix.distribution }}
3434
java-version: ${{ matrix.java }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- name: Set up JDK
22-
uses: actions/setup-java@v3
22+
uses: actions/setup-java@v4
2323
with:
2424
java-version: '17'
2525
distribution: 'temurin'
@@ -120,7 +120,7 @@ jobs:
120120
git pull
121121
122122
- name: Set up JDK Apache Maven Central
123-
uses: actions/setup-java@v3
123+
uses: actions/setup-java@v4
124124
with: # running setup-java again overwrites the settings.xml
125125
java-version: '17'
126126
distribution: 'temurin'
@@ -152,7 +152,7 @@ jobs:
152152
git pull
153153
154154
- name: Setup - Java
155-
uses: actions/setup-java@v3
155+
uses: actions/setup-java@v4
156156
with:
157157
java-version: '17'
158158
distribution: 'temurin'

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
3232

3333
- name: Set up JDK
34-
uses: actions/setup-java@v3
34+
uses: actions/setup-java@v4
3535
with:
3636
distribution: 'temurin'
3737
java-version: 17

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- name: Set up JDK OSSRH
16-
uses: actions/setup-java@v3
16+
uses: actions/setup-java@v4
1717
with: # running setup-java again overwrites the settings.xml
1818
distribution: 'temurin'
1919
java-version: '17'

.github/workflows/update-from-template.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ jobs:
8686
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8787
run: |
8888
gh_pr_up() {
89-
gh pr create "$@" || gh pr edit "$@"
89+
gh pr create -H "${{ env.UPDATE_BRANCH }}" "$@" || (git checkout "${{ env.UPDATE_BRANCH }}" && gh pr edit "$@")
9090
}
9191
gh_pr_up -B "${{ steps.main.outputs.current_branch }}" \
92-
-H "${{ env.UPDATE_BRANCH }}" \
9392
--title "Update from template" \
9493
--body "An automated PR to sync changes from the template into this repo"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.1.1
2+
* Removed unused dependency ``com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider``
3+
14
# 1.1.0
25
* Add undocumented ``video_stream`` field for sessions.<br/>Affected endpoints are:
36
* ``/session/add``

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ We also encourage you to read the [contribution instructions by GitHub](https://
1919
### Software Requirements
2020
You should have the following things installed:
2121
* Git
22-
* Java 17 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
22+
* Java 21 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
2323
* Maven
2424

2525
### Recommended setup

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sched-java-client-root</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.1.1-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<organization>

sched-java-client-demo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sched-java-client-demo</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.1.1-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<inceptionYear>2022</inceptionYear>
@@ -25,7 +25,7 @@
2525

2626
<mainClass>software.xdev.Application</mainClass>
2727

28-
<log4j2-version>2.21.0</log4j2-version>
28+
<log4j2-version>2.22.0</log4j2-version>
2929
</properties>
3030

3131
<dependencies>

sched-java-client/pom.xml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sched-java-client</artifactId>
9-
<version>1.1.0</version>
9+
<version>1.1.1-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>sched-java-client</name>
@@ -94,7 +94,7 @@
9494
<dependency>
9595
<groupId>com.fasterxml.jackson</groupId>
9696
<artifactId>jackson-bom</artifactId>
97-
<version>2.15.3</version>
97+
<version>2.16.0</version>
9898
<type>pom</type>
9999
<scope>import</scope>
100100
</dependency>
@@ -106,7 +106,7 @@
106106
<dependency>
107107
<groupId>org.apache.httpcomponents.client5</groupId>
108108
<artifactId>httpclient5</artifactId>
109-
<version>5.2.1</version>
109+
<version>5.2.3</version>
110110
</dependency>
111111

112112
<!-- JSON processing: jackson -->
@@ -122,10 +122,6 @@
122122
<groupId>com.fasterxml.jackson.core</groupId>
123123
<artifactId>jackson-databind</artifactId>
124124
</dependency>
125-
<dependency>
126-
<groupId>com.fasterxml.jackson.jaxrs</groupId>
127-
<artifactId>jackson-jaxrs-json-provider</artifactId>
128-
</dependency>
129125
<dependency>
130126
<groupId>com.fasterxml.jackson.datatype</groupId>
131127
<artifactId>jackson-datatype-jsr310</artifactId>
@@ -188,7 +184,7 @@
188184
<plugin>
189185
<groupId>org.apache.maven.plugins</groupId>
190186
<artifactId>maven-javadoc-plugin</artifactId>
191-
<version>3.6.0</version>
187+
<version>3.6.3</version>
192188
<executions>
193189
<execution>
194190
<id>attach-javadocs</id>
@@ -221,7 +217,7 @@
221217
<plugin>
222218
<groupId>org.codehaus.mojo</groupId>
223219
<artifactId>build-helper-maven-plugin</artifactId>
224-
<version>3.4.0</version>
220+
<version>3.5.0</version>
225221
<executions>
226222
<execution>
227223
<phase>generate-sources</phase>
@@ -285,7 +281,7 @@
285281
<profile>
286282
<id>openapi-generator</id>
287283
<properties>
288-
<basePackage>software.xdev.sched</basePackage>
284+
<componentName>sched</componentName>
289285

290286
<generatedDirRelative>src/generated/java</generatedDirRelative>
291287
<generatedDir>${project.basedir}/${generatedDirRelative}</generatedDir>
@@ -299,7 +295,7 @@
299295
<plugin>
300296
<groupId>org.apache.maven.plugins</groupId>
301297
<artifactId>maven-clean-plugin</artifactId>
302-
<version>3.3.1</version>
298+
<version>3.3.2</version>
303299
<executions>
304300
<execution>
305301
<id>pre-generation-clean</id>
@@ -328,7 +324,7 @@
328324
<plugin>
329325
<groupId>org.openapitools</groupId>
330326
<artifactId>openapi-generator-maven-plugin</artifactId>
331-
<version>7.0.1</version>
327+
<version>7.1.0</version>
332328
<executions>
333329
<execution>
334330
<goals>
@@ -340,9 +336,9 @@
340336
<configOptions>
341337
<sourceFolder>${openApiRelativeGeneratorDir}</sourceFolder>
342338
<library>apache-httpclient</library>
343-
<apiPackage>${basePackage}.api</apiPackage>
344-
<modelPackage>${basePackage}.model</modelPackage>
345-
<invokerPackage>${basePackage}.client</invokerPackage>
339+
<apiPackage>software.xdev.${componentName}.api</apiPackage>
340+
<modelPackage>software.xdev.${componentName}.model</modelPackage>
341+
<invokerPackage>software.xdev.${componentName}.client</invokerPackage>
346342
<!-- Otherwise throw and catch everywhere -->
347343
<useRuntimeException>true</useRuntimeException>
348344
<!-- Some fields of API have been ignored because they are unused -->
@@ -388,6 +384,23 @@
388384
<artifactId>find-and-replace-maven-plugin</artifactId>
389385
<version>1.1.0</version>
390386
<executions>
387+
<execution>
388+
<id>remove-unused-import-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider</id>
389+
<phase>process-sources</phase>
390+
<goals>
391+
<goal>find-and-replace</goal>
392+
</goals>
393+
<configuration>
394+
<replacementType>file-contents</replacementType>
395+
<baseDir>${generatedDirRelative}/software/xdev/${componentName}/client/</baseDir>
396+
<fileMask>ApiClient.java</fileMask>
397+
<!-- @formatter:off DO NOT INTRODUCE LINE BREAK -->
398+
<findRegex>^(import com\.fasterxml\.jackson\.jaxrs\.json\.JacksonJsonProvider;)$</findRegex>
399+
<!-- Can't be removed as the plugin isn't supporting empty values -->
400+
<replaceValue>// $1</replaceValue>
401+
<!-- @formatter:on -->
402+
</configuration>
403+
</execution>
391404
<execution>
392405
<!-- Sched Patch No1: Simple text is returned as text/html despite having no HTML -->
393406
<id>handle-html-like-text</id>

sched-java-client/src/generated/java/software/xdev/sched/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import com.fasterxml.jackson.databind.*;
1717
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
1818
import java.time.OffsetDateTime;
19-
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
19+
// import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
2020
import com.fasterxml.jackson.core.type.TypeReference;
2121
import com.fasterxml.jackson.core.JsonProcessingException;
2222
import com.fasterxml.jackson.databind.JavaType;

0 commit comments

Comments
 (0)