Skip to content

Commit

Permalink
Add bitcoinj submodule, move AddressTest into it
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Mar 4, 2024
1 parent 46e56a9 commit 862cefa
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions secp256k1-bitcoinj/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
plugins {
id 'java-library'
}

tasks.withType(JavaCompile).configureEach {
//options.release = 9
}

ext.moduleName = 'org.bitcoinj.secp256k1.bitcoinj'

dependencies {
api project(':secp256k1-api')
api project(':secp256k1-bouncy')
api project(':secp256k1-foreign')
api("org.bitcoinj:bitcoinj-core:0.17-alpha3");

implementation 'org.bouncycastle:bcprov-jdk18on:1.77'
}

jar {
inputs.property("moduleName", moduleName)
manifest {
attributes 'Implementation-Title': 'Secp256k1 bitcoinj support',
'Automatic-Module-Name': moduleName,
'Implementation-Version': archiveVersion.get()
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.consensusj.secp256k1.bitcoinj;
package org.bitcoinj.secp256k1.bitcoinj;

import org.bitcoinj.base.Address;
import org.bitcoinj.base.BitcoinNetwork;
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ rootProject.name = 'secp256k1-jdk'
include 'secp256k1-api' // API interface library
include 'secp256k1-bouncy' // Bouncy Castle implementation
include 'secp256k1-foreign' // Java Foreign Memory & Function ("Panama") implementation
include 'secp256k1-bitcoinj' // bitcoinj integration utilities and tests (P2TR address generation, etc.)
include 'secp256k1-examples-java' // Java examples
include 'secp256k1-examples-kotlin' // Kotlin examples
include 'secp256k1-sandbox' // Sandbox (experimental code that may be removed)
Expand Down

0 comments on commit 862cefa

Please sign in to comment.