Skip to content

Commit

Permalink
Update Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyhuo committed Jun 30, 2023
1 parent 57dd737 commit fa70d3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.bennyhuo.kotlin/deepcopy-reflect/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.bennyhuo.kotlin/deepcopy-reflect)


# KotlinDeepCopy

Provide an easy way to generate `DeepCopy` function for `data class`. DeepCopy only takes effect on the component members i.e. the members declared in the primary constructor.
Expand Down Expand Up @@ -31,7 +34,7 @@ class DeepCopyTest {
This library has been deloyed to maven center.

```gradle
implementation("com.bennyhuo.kotlin:deepcopy-reflect:1.8.20.0")
implementation("com.bennyhuo.kotlin:deepcopy-reflect:<latest-version>")
```

## Apt & Ksp
Expand Down Expand Up @@ -77,9 +80,9 @@ plugins {
...
dependencies {
ksp("com.bennyhuo.kotlin:deepcopy-compiler-ksp:1.8.20.0")) // ksp
kapt("com.bennyhuo.kotlin:deepcopy-compiler-kapt:1.8.20.0") // kapt
implementation("com.bennyhuo.kotlin:deepcopy-runtime:1.8.20.0")
ksp("com.bennyhuo.kotlin:deepcopy-compiler-ksp:<latest-version>")) // ksp
kapt("com.bennyhuo.kotlin:deepcopy-compiler-kapt:<latest-version>") // kapt
implementation("com.bennyhuo.kotlin:deepcopy-runtime:<latest-version>")
}
```

Expand All @@ -90,19 +93,19 @@ This is a nearly perfect version I think. It works like `copy` does. You can ins
```gradle
plugins {
kotlin("jvm") version "1.8.20"
id("com.bennyhuo.kotlin.plugin.deepcopy") version "1.8.20.0"
id("com.bennyhuo.kotlin.plugin.deepcopy") version "<latest-version>"
}
dependencies {
implementation("com.bennyhuo.kotlin:deepcopy-runtime:1.8.20.0")
implementation("com.bennyhuo.kotlin:deepcopy-runtime:<latest-version>")
}
```

And then try to call the `deepCopy` function directly!

# Change Log

## v1.8.20.0
## v1.8.20-1.0.0

Build with Kotlin 1.8.20.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlin.code.style=official

VERSION_NAME=1.8.20.0
VERSION_NAME=1.8.20-1.0.0

GROUP=com.bennyhuo.kotlin

Expand Down

0 comments on commit fa70d3b

Please sign in to comment.