Skip to content

Commit

Permalink
feat: change dependency visibility to api for submodules (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialPB authored Oct 18, 2024
1 parent ab516a6 commit d0e73ca
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 20 deletions.
6 changes: 3 additions & 3 deletions ethers-abi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ plugins {
}

dependencies {
implementation(project(":ethers-core"))
implementation(project(":ethers-providers"))
implementation(project(":ethers-signers"))
api(project(":ethers-core"))
api(project(":ethers-providers"))
api(project(":ethers-signers"))

testImplementation(libs.bundles.kotest)

Expand Down
3 changes: 2 additions & 1 deletion ethers-abigen-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ plugins {
}

dependencies {
implementation(project(":ethers-abigen"))
api(project(":ethers-abigen"))

implementation(libs.kotlin.gradle)
implementation(libs.hoplite.core)
implementation(libs.hoplite.toml)
Expand Down
7 changes: 3 additions & 4 deletions ethers-abigen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ plugins {
}

dependencies {
implementation(project(":ethers-core"))
implementation(project(":ethers-providers"))
implementation(project(":ethers-signers"))
implementation(project(":ethers-abi"))
api(project(":ethers-core"))
api(project(":ethers-providers"))
api(project(":ethers-abi"))

implementation(libs.kotlinpoet) {
// don't need this dependency: https://square.github.io/kotlinpoet/#kotlin-reflect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import java.security.SecureRandom
*
* Original: [org.bouncycastle.crypto.signers.ECDSASigner]
*/
class ECDSASignerRecoverable : ECConstants, DSAExt {
internal class ECDSASignerRecoverable : ECConstants, DSAExt {
private val kCalculator: DSAKCalculator
private var key: ECKeyParameters? = null
private var random: SecureRandom? = null
Expand Down
7 changes: 4 additions & 3 deletions ethers-ens/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ repositories {
}

dependencies {
implementation(project(":ethers-core"))
implementation(project(":ethers-abi"))
implementation(project(":ethers-providers"))
api(project(":ethers-core"))
api(project(":ethers-abi"))
api(project(":ethers-providers"))

implementation(project(":logger"))
implementation(libs.ens.normalise)

Expand Down
5 changes: 3 additions & 2 deletions ethers-providers/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ repositories {
dependencies {
api(libs.bundles.okhttp3)

implementation(project(":ethers-core"))
implementation(project(":ethers-signers"))
api(project(":ethers-core"))
api(project(":ethers-signers"))

implementation(project(":logger"))
implementation(libs.jctools)
implementation(libs.bundles.jackson)
Expand Down
4 changes: 1 addition & 3 deletions ethers-signers-gcp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ plugins {
}

dependencies {
implementation(project(":ethers-core"))
implementation(project(":ethers-crypto"))
implementation(project(":ethers-signers"))
api(project(":ethers-signers"))

implementation(libs.bouncycastle.provider)
implementation(libs.gcp.kms)
Expand Down
5 changes: 2 additions & 3 deletions ethers-signers/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ plugins {
}

dependencies {
implementation(project(":ethers-core"))
implementation(project(":ethers-crypto"))
implementation(project(":ethers-rlp"))
api(project(":ethers-core"))
api(project(":ethers-crypto"))

implementation(libs.bouncycastle.provider)

Expand Down

0 comments on commit d0e73ca

Please sign in to comment.