Skip to content

Commit 0d907eb

Browse files
authored
Code cleanup and dependency version bump (#551)
Code cleanup and dependency version bump Signed-off-by: David Kral <[email protected]>
1 parent 58b2d1e commit 0d907eb

File tree

4 files changed

+34
-35
lines changed

4 files changed

+34
-35
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ jobs:
4444
- name: Copyright
4545
run: bash etc/copyright.sh
4646
- name: Checkstyle
47-
run: mvn -B -Pstaging checkstyle:checkstyle
47+
run: mvn -B checkstyle:checkstyle
4848
- name: Yasson install
49-
run: mvn -U -C -Pstaging clean install -DskipTests
49+
# run: mvn -U -C -Pstaging clean install -DskipTests
50+
run: mvn -U -C clean install -DskipTests
5051
- name: Set up JDK for tests
5152
uses: actions/setup-java@v2
5253
with:

pom.xml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,36 @@
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3737
<jakarta.json.version>2.1.0</jakarta.json.version>
3838
<parson.version>2.1.0</parson.version>
39-
<jakarta.json.bind.version>3.0.0-RC1</jakarta.json.bind.version>
40-
<jakarta.enterprise.cdi-api.version>4.0.0-RC2</jakarta.enterprise.cdi-api.version>
39+
<jakarta.json.bind.version>3.0.0</jakarta.json.bind.version>
40+
<jakarta.enterprise.cdi-api.version>4.0.0</jakarta.enterprise.cdi-api.version>
4141
<netbeans.hint.jdkPlatform>JDK_9</netbeans.hint.jdkPlatform>
4242
</properties>
4343

44+
<dependencyManagement>
45+
<dependencies>
46+
<dependency>
47+
<groupId>jakarta.enterprise</groupId>
48+
<artifactId>jakarta.enterprise.cdi-api</artifactId>
49+
<version>${jakarta.enterprise.cdi-api.version}</version>
50+
</dependency>
51+
<dependency>
52+
<groupId>jakarta.el</groupId>
53+
<artifactId>jakarta.el-api</artifactId>
54+
<version>5.0.0-RC1</version>
55+
</dependency>
56+
<dependency>
57+
<groupId>jakarta.interceptor</groupId>
58+
<artifactId>jakarta.interceptor-api</artifactId>
59+
<version>2.1.0</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>jakarta.annotation</groupId>
63+
<artifactId>jakarta.annotation-api</artifactId>
64+
<version>2.1.0</version>
65+
</dependency>
66+
</dependencies>
67+
</dependencyManagement>
68+
4469
<dependencies>
4570
<!-- Compile dependencies -->
4671
<dependency>
@@ -62,21 +87,14 @@
6287
<dependency>
6388
<groupId>jakarta.enterprise</groupId>
6489
<artifactId>jakarta.enterprise.cdi-api</artifactId>
65-
<version>${jakarta.enterprise.cdi-api.version}</version>
6690
<optional>true</optional>
6791
<scope>provided</scope>
6892
</dependency>
6993
<dependency>
7094
<groupId>org.jboss.weld.se</groupId>
7195
<artifactId>weld-se-core</artifactId>
72-
<version>5.0.0.Beta1</version>
96+
<version>5.0.0.CR2</version>
7397
<scope>test</scope>
74-
<exclusions>
75-
<exclusion>
76-
<groupId>jakarta.el</groupId>
77-
<artifactId>jakarta.el-api</artifactId>
78-
</exclusion>
79-
</exclusions>
8098
</dependency>
8199
<dependency>
82100
<groupId>org.junit.jupiter</groupId>
@@ -94,6 +112,7 @@
94112
<groupId>org.hamcrest</groupId>
95113
<artifactId>hamcrest-all</artifactId>
96114
<version>1.3</version>
115+
<scope>test</scope>
97116
</dependency>
98117
</dependencies>
99118

src/main/java/org/eclipse/yasson/YassonConfig.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ public class YassonConfig extends JsonbConfig {
5252
*/
5353
public static final String FORCE_MAP_ARRAY_SERIALIZER_FOR_NULL_KEYS = "yasson.force-map-array-serializer-for-null-keys";
5454

55-
/**
56-
* @see #withJsonbParametersRequired(boolean)
57-
*/
58-
public static final String JSONB_CREATOR_PARAMETERS_REQUIRED = "yasson.jsonb-creator-parameters-required";
59-
6055
/**
6156
* @see #withTimeInMillisAsAString(boolean)
6257
*/
@@ -132,22 +127,6 @@ public YassonConfig withForceMapArraySerializerForNullKeys(boolean value) {
132127
return this;
133128
}
134129

135-
136-
/**
137-
* {@link jakarta.json.bind.annotation.JsonbCreator} parameters are required to be optional since the spec 3.0.0.
138-
* However, if it is needed to revert functionality as it used to be before, it is possible to use this switch
139-
* which globally turns the requirement of the {@link jakarta.json.bind.annotation.JsonbCreator} parameters
140-
* to be required.
141-
*
142-
* @param value whether to treat {@link jakarta.json.bind.annotation.JsonbCreator} parameters
143-
* as required. Default value is {@code false}.
144-
* @return This YassonConfig instance
145-
*/
146-
public YassonConfig withJsonbParametersRequired(boolean value) {
147-
setProperty(JSONB_CREATOR_PARAMETERS_REQUIRED, value);
148-
return this;
149-
}
150-
151130
/**
152131
* It is required to handle time millisecond format as a number. See
153132
* {@link jakarta.json.bind.annotation.JsonbDateFormat#TIME_IN_MILLIS}. It is possible to override this and force

src/main/java/org/eclipse/yasson/internal/JsonbConfigProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ private boolean initConfigFailOnUnknownProperties() {
189189

190190
private boolean initRequiredCreatorParameters() {
191191
if (System.getProperty(JsonbConfig.CREATOR_PARAMETERS_REQUIRED) != null) {
192-
return Boolean.parseBoolean(System.getProperty(YassonConfig.CREATOR_PARAMETERS_REQUIRED));
192+
return Boolean.parseBoolean(System.getProperty(JsonbConfig.CREATOR_PARAMETERS_REQUIRED));
193193
}
194-
return getConfigProperty(YassonConfig.CREATOR_PARAMETERS_REQUIRED, Boolean.class, false);
194+
return getConfigProperty(JsonbConfig.CREATOR_PARAMETERS_REQUIRED, Boolean.class, false);
195195
}
196196

197197
private boolean initDateInMillisecondsAsString() {

0 commit comments

Comments
 (0)