Skip to content

Commit 51db47b

Browse files
committed
kotlin dependency
1 parent 5da51c3 commit 51db47b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,24 @@ dependencies {
8282

8383
如果项目使用`Kotlin`,可以使用`fastjson-kotlin`模块,使用方式上采用`kotlin`的特性。
8484

85-
`Maven`:
85+
* `Maven`:
8686

8787
```xml
8888
<dependency>
8989
<groupId>com.alibaba.fastjson2</groupId>
9090
<artifactId>fastjson2-kotlin</artifactId>
9191
<version>2.0.24</version>
9292
</dependency>
93+
94+
<!-- 有些场景需要依赖kotlin-reflect -->
95+
<dependency>
96+
<groupId>org.jetbrains.kotlin</groupId>
97+
<artifactId>kotlin-reflect</artifactId>
98+
<version>${kotlin-version}</version>
99+
</dependency>
93100
```
94101

95-
`Kotlin Gradle`:
102+
* `Kotlin Gradle`:
96103

97104
```kotlin
98105
dependencies {

0 commit comments

Comments
 (0)