Skip to content

Commit 3ddd602

Browse files
authored
build: change build script to use maven publications(crypto, proto) (#16)
* build: change the source repository for crypto and protobuf modules to use maven publications * chore: reorganize the order of dependencies
1 parent f20f533 commit 3ddd602

File tree

13 files changed

+50
-113
lines changed

13 files changed

+50
-113
lines changed

.gitmodules

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5353

5454
### Build, CI
5555
* [\#14](https://github.com/Finschia/finschia-kt/pull/14) change groupID for maven publish. remove tx module from maven publish.
56+
* build: [\#16](https://github.com/Finschia/finschia-kt/pull/16) change build script to use maven publications(crypto, proto) and update README
5657

5758
### Document Updates
5859

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ Requires [finschia-sdk v0.47.0](https://github.com/Finschia/finschia-sdk/tree/v0
66

77
Current finschia-sdk version applied to finschia-kt/protobuf is [finschia-sdk v0.47.0](https://github.com/Finschia/finschia-sdk/tree/v0.47.0)
88

9+
## Using SDK
10+
11+
* finschia-kt SDK(crypto)
12+
```kotlin
13+
val sdkCryptoVersion = "0.2.2"
14+
dependencies {
15+
implementation("network.finschia:finschia-kt-crypto:$sdkCryptoVersion")
16+
}
17+
```
18+
* finschia-kt SDK(proto)
19+
```kotlin
20+
val sdkProtoVersion = "1.0.1"
21+
22+
dependencies {
23+
implementation("network.finschia:finschia-proto:$sdkProtoVersion")
24+
}
25+
```
26+
927
## Build
1028

1129
You can build the project by following command, which also runs all the unit tests:

crypto/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ dependencies {
3232
implementation("org.bitcoinj:bitcoinj-core:$bitcoinjVersion")
3333
implementation("org.web3j:crypto:$web3jVersion")
3434

35+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
36+
3537
testImplementation("org.mockito:mockito-core:$mockitoVersion")
3638
testImplementation("org.mockito:mockito-inline:$mockitoVersion")
3739
testImplementation("com.google.truth:truth:$truthVersion")
3840
testImplementation("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
3941
testImplementation("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
40-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
4142
}
4243

4344
java {

examples/multisig-example/build.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ val bitcoinjVersion = "0.15.6"
77
val kotlinxVersion = "1.2.0"
88

99
dependencies {
10-
implementation(project(":crypto"))
11-
implementation(project(":protobuf"))
12-
implementation(project(":tx"))
10+
runtimeOnly(libs.grpc.netty)
11+
1312
implementation("org.bitcoinj:bitcoinj-core:$bitcoinjVersion")
1413
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxVersion")
15-
runtimeOnly(libs.grpc.netty)
14+
15+
// Finschia sdk
16+
implementation("network.finschia:finschia-kt-crypto:0.2.2")
17+
implementation("network.finschia:finschia-proto:1.0.1")
18+
19+
implementation(project(":tx"))
1620
}
1721

1822
application {

examples/query-example/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ plugins {
33
}
44

55
dependencies {
6-
implementation(project(":tx"))
7-
implementation(project(":crypto"))
8-
implementation(project(":protobuf"))
96
runtimeOnly(libs.grpc.netty)
7+
8+
// Finschia sdk
9+
implementation("network.finschia:finschia-kt-crypto:0.2.2")
10+
implementation("network.finschia:finschia-proto:1.0.1")
11+
12+
implementation(project(":tx"))
1013
}
1114

1215
application {

examples/with-tx-wrapper-example/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ plugins {
33
}
44

55
dependencies {
6-
implementation(project(":tx"))
7-
implementation(project(":crypto"))
8-
implementation(project(":protobuf"))
96
runtimeOnly(libs.grpc.netty)
7+
8+
// Finschia sdk
9+
implementation("network.finschia:finschia-kt-crypto:0.2.2")
10+
implementation("network.finschia:finschia-proto:1.0.1")
11+
12+
implementation(project(":tx"))
1013
}
1114

1215
application {

examples/without-tx-wrapper-example/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ plugins {
55
val bitcoinjVersion = "0.15.6"
66

77
dependencies {
8-
implementation(project(":crypto"))
9-
implementation(project(":protobuf"))
8+
runtimeOnly(libs.grpc.netty)
9+
1010
implementation("org.bitcoinj:bitcoinj-core:$bitcoinjVersion")
1111

12-
runtimeOnly(libs.grpc.netty)
12+
// Finschia sdk
13+
implementation("network.finschia:finschia-kt-crypto:0.2.2")
14+
implementation("network.finschia:finschia-proto:1.0.1")
1315
}
1416

1517
application {

protobuf/build.gradle.kts

Lines changed: 0 additions & 84 deletions
This file was deleted.

protobuf/repositories/finschia-sdk

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)