Skip to content

Commit

Permalink
chore: 🤖 replace compile with implementation in build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu Chuankai committed Apr 28, 2023
1 parent 01cd30d commit f43d97c
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 23 deletions.
6 changes: 5 additions & 1 deletion ckb-indexer/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
description 'SDK for CKB indexer'

dependencies {
compile project(":core")
implementation(project(":utils"))
implementation(project(":serialization"))
implementation project(":core")

implementation "com.google.code.gson:gson:$gsonVersion"

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
Expand Down
9 changes: 7 additions & 2 deletions ckb-mercury-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
description 'SDK for CKB mercury'

dependencies {
compile project(":core")
compile project(":ckb-indexer")
implementation project(":core")
implementation project(":ckb-indexer")
implementation project(":utils")

implementation("org.bouncycastle:bcprov-jdk15on:$bouncycastleVersion")
implementation "com.google.code.gson:gson:$gsonVersion"

testImplementation project(":ckb")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
Expand Down
12 changes: 7 additions & 5 deletions ckb/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
description 'ckb-sdk-java is a lightweight Java library for integration with nervos CKB.'

dependencies {
compile project(":core")
compile project(":ckb-indexer")
compile project(":light-client")
compile project(":utils")
compile project(":serialization")
implementation project(":core")
implementation project(":ckb-indexer")
implementation project(":light-client")
implementation project(":utils")
implementation project(":serialization")

implementation "com.google.code.gson:gson:$gsonVersion"
}

apply plugin: 'com.github.johnrengelman.shadow'
16 changes: 10 additions & 6 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
description 'CKB core'

dependencies {
compile project(":serialization")
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
compile "com.google.code.gson:gson:$gsonVersion"
compile "com.squareup.okhttp3:okhttp:$okhttpVersion"
compile "com.squareup.okhttp3:logging-interceptor:$loggingOkhttpVersion"
implementation(project(":utils"))
implementation project(":serialization")

implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("com.google.guava:guava:$guavaVersion")
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$loggingOkhttpVersion"
}
13 changes: 7 additions & 6 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
description 'ckb-sdk-java is a lightweight Java library for integration with nervos CKB.'

dependencies {
compile project(":ckb")
compile project(":ckb-indexer")
compile project(":light-client")
compile project(":utils")
compile "com.google.code.gson:gson:$gsonVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
implementation project(":ckb")
implementation project(":ckb-indexer")
implementation project(":light-client")
implementation project(":utils")
implementation project(":core")
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
5 changes: 5 additions & 0 deletions light-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ repositories {

dependencies {
implementation project(":ckb-indexer")
implementation project(":core")
implementation project(":utils")

implementation("com.google.code.gson:gson:$gsonVersion")

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}
Expand Down
4 changes: 3 additions & 1 deletion serialization/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
description 'Minimal set of ckb serialization classes'

dependencies {
compile project(":utils")
implementation project(":utils")

implementation("com.google.code.findbugs:jsr305:3.0.2")
}
4 changes: 2 additions & 2 deletions utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description 'Minimal set of ckb utility classes'

dependencies {
compile "org.bouncycastle:bcprov-jdk15on:$bouncycastleVersion"
compile "com.google.guava:guava:$guavaVersion"
implementation "org.bouncycastle:bcprov-jdk15on:$bouncycastleVersion"
implementation("com.google.guava:guava:$guavaVersion")
}

0 comments on commit f43d97c

Please sign in to comment.