Skip to content

Commit cf0af4e

Browse files
authored
update for jackson 3.0.0-rc6 (#15)
1 parent 3fc13aa commit cf0af4e

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ dependencies {
3131
}
3232

3333
recipeDependencies {
34-
parserClasspath("com.fasterxml.jackson.core:jackson-annotations:2.19.1")
34+
parserClasspath("com.fasterxml.jackson.core:jackson-annotations:2.19.2")
3535
}

src/main/resources/META-INF/rewrite/jackson-2-3.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,37 @@ recipeList:
2828
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
2929
groupId: com.fasterxml.jackson.core
3030
artifactId: jackson-annotations
31-
newVersion: 3.0-rc5
31+
newVersion: 2.19.2
3232
- org.openrewrite.java.dependencies.ChangeDependency:
3333
oldGroupId: com.fasterxml.jackson.core
3434
oldArtifactId: jackson-core
3535
newGroupId: tools.jackson.core
3636
newArtifactId: jackson-core
37-
newVersion: 3.0.0-rc5
37+
newVersion: 3.0.0-rc6
3838
- org.openrewrite.java.dependencies.ChangeDependency:
3939
oldGroupId: com.fasterxml.jackson.core
4040
oldArtifactId: jackson-databind
4141
newGroupId: tools.jackson.core
4242
newArtifactId: jackson-databind
43-
newVersion: 3.0.0-rc5
43+
newVersion: 3.0.0-rc6
4444
- org.openrewrite.java.dependencies.ChangeDependency:
4545
oldGroupId: com.fasterxml.jackson.module
4646
oldArtifactId: jackson-module-parameter-names
4747
newGroupId: tools.jackson.core
4848
newArtifactId: jackson-databind
49-
newVersion: 3.0.0-rc5
49+
newVersion: 3.0.0-rc6
5050
- org.openrewrite.java.dependencies.ChangeDependency:
5151
oldGroupId: com.fasterxml.jackson.datatype
5252
oldArtifactId: jackson-datatype-jdk8
5353
newGroupId: tools.jackson.core
5454
newArtifactId: jackson-databind
55-
newVersion: 3.0.0-rc5
55+
newVersion: 3.0.0-rc6
5656
- org.openrewrite.java.dependencies.ChangeDependency:
5757
oldGroupId: com.fasterxml.jackson.datatype
5858
oldArtifactId: jackson-datatype-jsr310
5959
newGroupId: tools.jackson.core
6060
newArtifactId: jackson-databind
61-
newVersion: 3.0.0-rc5
61+
newVersion: 3.0.0-rc6
6262
- org.openrewrite.java.ChangeType:
6363
oldFullyQualifiedTypeName: com.fasterxml.jackson.core.JsonParseException
6464
newFullyQualifiedTypeName: tools.jackson.core.StreamReadException

src/test/java/org/openrewrite/java/jackson/UpgradeJackson_2_3Test.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void jacksonUpgradeToVersion3() {
107107
<dependency>
108108
<groupId>com.fasterxml.jackson.core</groupId>
109109
<artifactId>jackson-annotations</artifactId>
110-
<version>%s</version>
110+
<version>2.19.2</version>
111111
</dependency>
112112
<dependency>
113113
<groupId>tools.jackson.core</groupId>
@@ -130,12 +130,12 @@ void jacksonUpgradeToVersion3() {
130130
import com.fasterxml.jackson.core.JsonFactory;
131131
import com.fasterxml.jackson.core.JsonFactoryBuilder;
132132
import com.fasterxml.jackson.databind.ObjectMapper;
133-
133+
134134
class Test {
135135
public String foo(@JsonProperty("foo") String foo) {
136136
return foo;
137137
}
138-
138+
139139
static void helloJackson() {
140140
Object[] input = new Object[] { "one", "two" };
141141
JsonFactory factory = new JsonFactoryBuilder().build();
@@ -147,12 +147,12 @@ static void helloJackson() {
147147
import tools.jackson.core.JsonFactory;
148148
import tools.jackson.core.JsonFactoryBuilder;
149149
import tools.jackson.databind.ObjectMapper;
150-
150+
151151
class Test {
152152
public String foo(@JsonProperty("foo") String foo) {
153153
return foo;
154154
}
155-
155+
156156
static void helloJackson() {
157157
Object[] input = new Object[] { "one", "two" };
158158
JsonFactory factory = new JsonFactoryBuilder().build();
@@ -231,7 +231,7 @@ void jacksonUpgradeToVersion3_JsonProcessingException() {
231231
import com.fasterxml.jackson.core.JsonFactoryBuilder;
232232
import com.fasterxml.jackson.core.JsonProcessingException;
233233
import com.fasterxml.jackson.databind.ObjectMapper;
234-
234+
235235
class Test {
236236
static void helloJackson() {
237237
try {
@@ -247,7 +247,7 @@ static void helloJackson() {
247247
import tools.jackson.core.JsonFactory;
248248
import tools.jackson.core.JsonFactoryBuilder;
249249
import tools.jackson.databind.ObjectMapper;
250-
250+
251251
class Test {
252252
static void helloJackson() {
253253
try {
@@ -272,7 +272,7 @@ void jacksonUpgradeToVersion3_JsonParseException() {
272272
import com.fasterxml.jackson.core.JsonFactoryBuilder;
273273
import com.fasterxml.jackson.core.JsonParseException;
274274
import com.fasterxml.jackson.databind.ObjectMapper;
275-
275+
276276
class Test {
277277
static void helloJackson() {
278278
try {
@@ -288,7 +288,7 @@ static void helloJackson() {
288288
import tools.jackson.core.JsonFactoryBuilder;
289289
import tools.jackson.databind.ObjectMapper;
290290
import tools.jackson.core.StreamReadException;
291-
291+
292292
class Test {
293293
static void helloJackson() {
294294
try {
@@ -313,7 +313,7 @@ void jacksonUpgradeToVersion3_JsonGenerationException() {
313313
import com.fasterxml.jackson.core.JsonFactoryBuilder;
314314
import com.fasterxml.jackson.core.JsonGenerationException;
315315
import com.fasterxml.jackson.databind.ObjectMapper;
316-
316+
317317
class Test {
318318
static void helloJackson() {
319319
try {
@@ -329,7 +329,7 @@ static void helloJackson() {
329329
import tools.jackson.core.JsonFactoryBuilder;
330330
import tools.jackson.databind.ObjectMapper;
331331
import tools.jackson.core.StreamWriteException;
332-
332+
333333
class Test {
334334
static void helloJackson() {
335335
try {
@@ -354,7 +354,7 @@ void jacksonUpgradeToVersion3_JsonMappingException() {
354354
import com.fasterxml.jackson.core.JsonFactoryBuilder;
355355
import com.fasterxml.jackson.databind.JsonMappingException;
356356
import com.fasterxml.jackson.databind.ObjectMapper;
357-
357+
358358
class Test {
359359
static void helloJackson() {
360360
try {
@@ -370,7 +370,7 @@ static void helloJackson() {
370370
import tools.jackson.core.JsonFactoryBuilder;
371371
import tools.jackson.databind.DatabindException;
372372
import tools.jackson.databind.ObjectMapper;
373-
373+
374374
class Test {
375375
static void helloJackson() {
376376
try {

0 commit comments

Comments
 (0)