Skip to content

Commit

Permalink
TKSS-179: READMEs just use version placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshajiang committed Mar 12, 2023
1 parent ae36590 commit 835b8e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ repositories {
}
dependencies {
implementation("com.tencent.kona:kona-crypto:1.0.7.1")
implementation("com.tencent.kona:kona-pkix:1.0.7.1")
implementation("com.tencent.kona:kona-ssl:1.0.7.1")
implementation("com.tencent.kona:kona-provider:1.0.7.1")
implementation("com.tencent.kona:kona-crypto:<version>")
implementation("com.tencent.kona:kona-pkix:<version>")
implementation("com.tencent.kona:kona-ssl:<version>")
implementation("com.tencent.kona:kona-provider:<version>")
}
```

Note that, it is unnecessary to put all the providers into the classpath. Please declare the dependencies as you need. For example, if only need the ShangMi crypto algorithms and want to use provider `Kona`, the dependency declaration may look like the followings,

```
dependencies {
implementation("com.tencent.kona:kona-crypto:1.0.7")
implementation("com.tencent.kona:kona-provider:1.0.7")
implementation("com.tencent.kona:kona-crypto:<version>")
implementation("com.tencent.kona:kona-provider:<version>")
}
```

Expand Down
12 changes: 6 additions & 6 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ repositories {
}
dependencies {
implementation("com.tencent.kona:kona-crypto:1.0.7.1")
implementation("com.tencent.kona:kona-pkix:1.0.7.1")
implementation("com.tencent.kona:kona-ssl:1.0.7.1")
implementation("com.tencent.kona:kona-provider:1.0.7.1")
implementation("com.tencent.kona:kona-crypto:<version>")
implementation("com.tencent.kona:kona-pkix:<version>")
implementation("com.tencent.kona:kona-ssl:<version>")
implementation("com.tencent.kona:kona-provider:<version>")
}
```

注意,并不一定要将所有的Provider都加到类路径中,请根据实际需求去声明依赖。例如,只需要使用国密的基础算法,且想使用Provider名称`Kona`时,那么依赖声明可能就像下面这样,

```
dependencies {
implementation("com.tencent.kona:kona-crypto:1.0.7.1")
implementation("com.tencent.kona:kona-provider:1.0.7.1")
implementation("com.tencent.kona:kona-crypto:<version>")
implementation("com.tencent.kona:kona-provider:<version>")
}
```

Expand Down

0 comments on commit 835b8e3

Please sign in to comment.