Skip to content

Commit 4aedcc4

Browse files
committed
Update version refs in README
1 parent c420897 commit 4aedcc4

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Module that adds support for serialization/deserialization of [Kotlin](http://ko
99
2.9.8+ Releases are compiled with Kotlin 1.3.x, other older releases are Kotlin 1.2.x. All should be compatible with
1010
current Kotlin if you also ensure the `kotlin-reflect` dependency is included with the same version number as stdlib.
1111

12-
* *unreleased* `2.12` branch (for *unreleased* Jackson `2.12`) [![CircleCI](https://circleci.com/gh/FasterXML/jackson-module-kotlin/tree/2.12.svg?style=svg)](https://circleci.com/gh/FasterXML/jackson-module-kotlin/tree/2.12)
12+
* release `2.12` (for Jackson `2.12.x`) [![CircleCI](https://circleci.com/gh/FasterXML/jackson-module-kotlin/tree/2.12.svg?style=svg)](https://circleci.com/gh/FasterXML/jackson-module-kotlin/tree/2.12)
1313
* release `2.11.2` (for Jackson `2.11.x`) [![CircleCI](https://circleci.com/gh/FasterXML/jackson-module-kotlin/tree/2.11.svg?style=svg)](https://circleci.com/gh/FasterXML/jackson-module-kotlin/tree/2.11)
1414
* release `2.10.5` (for Jackson `2.10.x`)
1515
* release `2.9.10` (for Jackson `2.9.x`)
@@ -18,21 +18,22 @@ Releases require that you have included Kotlin stdlib and reflect libraries alre
1818

1919
Gradle:
2020
```
21-
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.10.+"
21+
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.12.+"
2222
```
2323

2424
Maven:
2525
```xml
2626
<dependency>
2727
<groupId>com.fasterxml.jackson.module</groupId>
2828
<artifactId>jackson-module-kotlin</artifactId>
29-
<version>2.10.10</version>
29+
<version>2.12.0</version>
3030
</dependency>
3131
```
3232

3333
# Usage
3434

35-
For any Kotlin class or data class constructor, the JSON property names will be inferred from the parameters using Kotlin runtime type information.
35+
For any Kotlin class or data class constructor, the JSON property names will be inferred
36+
from the parameters using Kotlin runtime type information.
3637

3738
To use, just register the Kotlin module with your ObjectMapper instance:
3839

@@ -74,11 +75,14 @@ myMemberWithType = mapper.readValue(json)
7475
```
7576

7677
All inferred types for the extension functions carry in full generic information (reified generics).
77-
Therefore, using `readValue()` extension without the `Class` parameter will reify the type and automatically create a `TypeReference` for Jackson.
78+
Therefore, using `readValue()` extension without the `Class` parameter will reify the type and
79+
automatically create a `TypeReference` for Jackson.
7880

7981
# Annotations
8082

81-
You can intermix non-field values in the constructor and `JsonProperty` annotation in the constructor. Any fields not present in the constructor will be set after the constructor call. An example of these concepts:
83+
You can intermix non-field values in the constructor and `JsonProperty` annotation in the constructor.
84+
Any fields not present in the constructor will be set after the constructor call.
85+
An example of these concepts:
8286

8387
```kotlin
8488
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@@ -89,7 +93,8 @@ You can intermix non-field values in the constructor and `JsonProperty` annotati
8993
}
9094
```
9195

92-
Note that using `lateinit` or `Delegates.notNull()` will ensure that the value is never null when read, while letting it be instantiated after the construction of the class.
96+
Note that using `lateinit` or `Delegates.notNull()` will ensure that the value is never null when read,
97+
while letting it be instantiated after the construction of the class.
9398

9499
# Caveats
95100

0 commit comments

Comments
 (0)