Skip to content

Commit 98b9f5a

Browse files
authored
Merge pull request #49 from xdev-software/develop
1.1.2
2 parents 609ba50 + b7e2c35 commit 98b9f5a

File tree

7 files changed

+45
-20
lines changed

7 files changed

+45
-20
lines changed

.github/workflows/checkBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.1.2
2+
* Removed unused dependency ``com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider``
3+
14
# 1.1.1
25
* Update dependencies
36

sessionize-java-client/pom.xml

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4949
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5050

51+
<generatedDirRelative>src/generated/java</generatedDirRelative>
52+
5153
<!-- Ignore generated code -->
5254
<sonar.exclusions>
5355
src/generated/**
@@ -106,7 +108,7 @@
106108
<dependency>
107109
<groupId>org.apache.httpcomponents.client5</groupId>
108110
<artifactId>httpclient5</artifactId>
109-
<version>5.2.1</version>
111+
<version>5.2.3</version>
110112
</dependency>
111113

112114
<!-- JSON processing: jackson -->
@@ -122,10 +124,6 @@
122124
<groupId>com.fasterxml.jackson.core</groupId>
123125
<artifactId>jackson-databind</artifactId>
124126
</dependency>
125-
<dependency>
126-
<groupId>com.fasterxml.jackson.jaxrs</groupId>
127-
<artifactId>jackson-jaxrs-json-provider</artifactId>
128-
</dependency>
129127
<dependency>
130128
<groupId>com.fasterxml.jackson.datatype</groupId>
131129
<artifactId>jackson-datatype-jsr310</artifactId>
@@ -188,7 +186,7 @@
188186
<plugin>
189187
<groupId>org.apache.maven.plugins</groupId>
190188
<artifactId>maven-javadoc-plugin</artifactId>
191-
<version>3.6.2</version>
189+
<version>3.6.3</version>
192190
<executions>
193191
<execution>
194192
<id>attach-javadocs</id>
@@ -221,7 +219,7 @@
221219
<plugin>
222220
<groupId>org.codehaus.mojo</groupId>
223221
<artifactId>build-helper-maven-plugin</artifactId>
224-
<version>3.4.0</version>
222+
<version>3.5.0</version>
225223
<executions>
226224
<execution>
227225
<phase>generate-sources</phase>
@@ -230,7 +228,7 @@
230228
</goals>
231229
<configuration>
232230
<sources>
233-
<source>src/generated/java</source>
231+
<source>${generatedDirRelative}</source>
234232
</sources>
235233
</configuration>
236234
</execution>
@@ -285,9 +283,9 @@
285283
<profile>
286284
<id>openapi-generator</id>
287285
<properties>
288-
<basePackage>software.xdev.sessionize</basePackage>
286+
<componentName>sessionize</componentName>
289287

290-
<generatedDir>${project.basedir}/src/generated/java</generatedDir>
288+
<generatedDir>${project.basedir}/${generatedDirRelative}</generatedDir>
291289
<openApiRelativeGeneratorDir>src/gen</openApiRelativeGeneratorDir>
292290
<openApiGeneratorDir>
293291
${project.basedir}/target/generated-sources/openapi/${openApiRelativeGeneratorDir}
@@ -339,9 +337,9 @@
339337
<configOptions>
340338
<sourceFolder>${openApiRelativeGeneratorDir}</sourceFolder>
341339
<library>apache-httpclient</library>
342-
<apiPackage>${basePackage}.api</apiPackage>
343-
<modelPackage>${basePackage}.model</modelPackage>
344-
<invokerPackage>${basePackage}.client</invokerPackage>
340+
<apiPackage>software.xdev.${componentName}.api</apiPackage>
341+
<modelPackage>software.xdev.${componentName}.model</modelPackage>
342+
<invokerPackage>software.xdev.${componentName}.client</invokerPackage>
345343
<!-- Otherwise throw and catch everywhere -->
346344
<useRuntimeException>true</useRuntimeException>
347345
<!-- Some fields of API have been ignored because they are unused -->
@@ -382,6 +380,30 @@
382380
</execution>
383381
</executions>
384382
</plugin>
383+
<plugin>
384+
<groupId>io.github.floverfelt</groupId>
385+
<artifactId>find-and-replace-maven-plugin</artifactId>
386+
<version>1.1.0</version>
387+
<executions>
388+
<execution>
389+
<id>remove-unused-import-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider</id>
390+
<phase>process-sources</phase>
391+
<goals>
392+
<goal>find-and-replace</goal>
393+
</goals>
394+
<configuration>
395+
<replacementType>file-contents</replacementType>
396+
<baseDir>${generatedDirRelative}/software/xdev/${componentName}/client/</baseDir>
397+
<fileMask>ApiClient.java</fileMask>
398+
<!-- @formatter:off DO NOT INTRODUCE LINE BREAK -->
399+
<findRegex>^(import com\.fasterxml\.jackson\.jaxrs\.json\.JacksonJsonProvider;)$</findRegex>
400+
<!-- Can't be removed as the plugin isn't supporting empty values -->
401+
<replaceValue>// $1</replaceValue>
402+
<!-- @formatter:on -->
403+
</configuration>
404+
</execution>
405+
</executions>
406+
</plugin>
385407
</plugins>
386408
</build>
387409
</profile>

sessionize-java-client/src/generated/java/software/xdev/sessionize/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)