Skip to content

Commit

Permalink
Create composed module for core, bitcoind, json-rpc, regtest
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Sep 4, 2024
1 parent 40e63d6 commit 85e7714
Show file tree
Hide file tree
Showing 160 changed files with 58 additions and 37 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/desktop-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies {
implementation(project(":desktop"))

implementation("network:network")
implementation("wallets:core")
implementation("bitcoind:core")
// implementation("wallets:electrum")
// implementation("wallets:bitcoind")

Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
implementation("network:network")
implementation("network:network-identity")

implementation("wallets:core")
implementation("bitcoind:core")
// implementation("wallets:electrum")
// implementation("wallets:bitcoind")

Expand Down
2 changes: 1 addition & 1 deletion apps/rest-api-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {

implementation("network:network-common")
implementation("network:network")
implementation("wallets:core")
implementation("bitcoind:core")

implementation(libs.typesafe.config)
implementation(libs.bundles.glassfish.jersey)
Expand Down
2 changes: 1 addition & 1 deletion bisq-easy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {

implementation("network:network")
implementation("network:network-identity")
implementation("wallets:core")
implementation("bitcoind:core")
// implementation("wallets:electrum")
// implementation("wallets:bitcoind")

Expand Down
17 changes: 17 additions & 0 deletions wallets/bitcoind/bitcoind/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("bisq.java-library")
id("bisq.java-integration-tests")
id("bisq.protobuf")
}

dependencies {
implementation("bisq:persistence")

implementation(project(":core"))
implementation(project(":json-rpc"))

implementation(libs.typesafe.config)
implementation(libs.jeromq)

integrationTestImplementation(project(":regtest"))
}
19 changes: 3 additions & 16 deletions wallets/bitcoind/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
plugins {
id("bisq.java-library")
id("bisq.java-integration-tests")
id("bisq.protobuf")
}

dependencies {
implementation("bisq:persistence")

implementation(project(":core"))
implementation(project(":json-rpc"))

implementation(libs.typesafe.config)
implementation(libs.jeromq)

integrationTestImplementation(project(":regtest"))
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}
File renamed without changes.
1 change: 1 addition & 0 deletions wallets/bitcoind/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.caching=true
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions wallets/bitcoind/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pluginManagement {
repositories {
gradlePluginPortal()
}
includeBuild("../../build-logic")
}

dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../../gradle/libs.versions.toml"))
}
}
}

include("core")
include("bitcoind")
include("json-rpc")
include("regtest")

rootProject.name = "bitcoind"
12 changes: 5 additions & 7 deletions wallets/electrum/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ sourceSets {
}

dependencies {
api(project(":core"))
api("bitcoind:core")
implementation("bitcoind:json-rpc")
implementation("bitcoind:regtest")

implementation("bisq:persistence")
implementation(project(":json-rpc"))
implementation(project(":process"))
implementation(project(":regtest"))

implementation(libs.typesafe.config)
implementation(libs.bundles.glassfish.jersey)

integrationTestImplementation(project(":bitcoind"))
integrationTestImplementation(project(":regtest"))
integrationTestImplementation("bitcoind:bitcoind")
integrationTestImplementation("bitcoind:regtest")
}
8 changes: 4 additions & 4 deletions wallets/elementsd/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ plugins {
dependencies {
implementation("bisq:persistence")

implementation(project(":core"))
implementation(project(":bitcoind"))
implementation(project(":json-rpc"))
implementation("bitcoind:core")
implementation("bitcoind:bitcoind")
implementation("bitcoind:json-rpc")

integrationTestImplementation(project(":regtest"))
integrationTestImplementation("bitcoind:regtest")
}
4 changes: 2 additions & 2 deletions wallets/process/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
}

dependencies {
implementation(project(":core"))
implementation(project(":bitcoind"))
implementation("bitcoind:core")
implementation("bitcoind:bitcoind")

implementation(libs.assertj.core)
implementation(libs.junit.jupiter)
Expand Down
5 changes: 1 addition & 4 deletions wallets/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ dependencyResolutionManagement {
}

includeBuild("..")
include("core")
includeBuild("bitcoind")

include("bitcoind")
include("electrum")
include("elementsd")

include("json-rpc")
include("process")
include("regtest")

rootProject.name = "wallets"

0 comments on commit 85e7714

Please sign in to comment.