Commit Graph

87 Commits

Author SHA1 Message Date
Sean Gilligan
8800840e7e integration-test: move tests derived from TestWithNetworkConnections to integration-test submodule 2022-05-31 13:56:38 +02:00
Sean Gilligan
a6e5c88ce8 build.gradle: add detailed deprecation warnings to all modules 2022-04-19 10:07:55 +02:00
Andreas Schildbach
7f41553576 HttpDiscovery: remove the protocol to discover seeds via HTTP 2022-04-17 10:09:20 +02:00
Andreas Schildbach
cdf1fa2461 build.gradle: update EqualsVerifier to 3.10 2022-04-02 14:27:42 +02:00
Andreas Schildbach
e5ed59a1d5 build.gradle: update Jackson to 2.13.2.1 2022-04-02 14:27:42 +02:00
Andreas Schildbach
bd0672249a build.gradle: update Guava to 31.1-android 2022-04-02 14:27:42 +02:00
Andreas Schildbach
f33af0316c build.gradle: update BouncyCastle to 1.71 2022-04-02 14:27:42 +02:00
Andreas Schildbach
7aa54583b7 build.gradle: update protobuf-javalite to 3.19.4 2022-03-07 11:33:40 +01:00
Andreas Schildbach
52babf52b0 LevelDBBlockStore, LevelDBFullPrunedBlockStore: remove LevelDB-based block stores 2022-03-04 18:27:40 +01:00
Sean Gilligan
3758213100 core/build.gradle: Commented out option for max javadoc warnings 2022-02-23 12:46:02 +01:00
Andreas Schildbach
07b627a249 build.gradle: update EqualsVerifier to 3.9 2022-02-18 10:01:16 +01:00
Andreas Schildbach
12573849ea build.gradle: update Jackson to 2.13.1 2022-02-18 09:26:34 +01:00
Sean Gilligan
ea208935ff build.gradle: Update SLF4J to 1.7.36
Starting with version 1.7.36, SLF4J releases are reproducible.
2022-02-18 08:54:36 +01:00
Sean Gilligan
bd6e1c6a09 build.gradle: Add testOnJdk8 task (if Gradle > 6.7)
* testOnJdk8 is not run by default
* If testJdk8 Gradle property is set, run testOnJdk8 as part of `check`
* Set testJdk8 in gradle.yml Github Actions workflow
2022-01-01 13:53:39 +01:00
Sean Gilligan
a2cf303655 build.gradle: require JDK 11 for the build
Uses javac -release option to validate API for older JDK.
2021-12-24 11:35:37 +01:00
Andreas Schildbach
fe749281c6 build.gradle: update Hamcrest to 2.2 2021-12-14 15:57:01 +01:00
Andreas Schildbach
acecf4fc25 build.gradle: update EqualsVerifier to 3.7.2 2021-12-14 15:53:39 +01:00
Andreas Schildbach
88d05aca61 build.gradle: update H2 database to 1.3.176 2021-12-14 15:49:41 +01:00
Andreas Schildbach
c271a145aa build.gradle: update Jackson to 2.13.0 2021-12-14 15:37:14 +01:00
Andreas Schildbach
450052a50d build.gradle: update EasyMock to 4.3 2021-12-14 15:29:07 +01:00
Andreas Schildbach
c6157a7573 build.gradle: update BouncyCastle to 1.70 2021-12-14 11:50:49 +01:00
Andreas Schildbach
d036581344 build.gradle: update JUnit to 4.13.2 2021-12-14 11:45:39 +01:00
Andreas Schildbach
fd70fe2a0e 0.17-SNAPSHOT 2021-10-10 12:09:32 +02:00
Andreas Schildbach
e1aca6db53 build.gradle: add publishing section so that the publishToMavenLocal task can be used 2021-10-06 00:20:33 +02:00
Andreas Schildbach
78f44e68c4 build.gradle: update OkHttp to 3.14.9 2021-10-05 17:22:47 +02:00
Andreas Schildbach
89f851cf75 build.gradle: update protobuf-javalite to 3.18.0 2021-10-05 17:20:29 +02:00
Andreas Schildbach
d0f6e0afca build.gradle: Update Guava to 31.0.1-android. 2021-09-29 19:13:39 +02:00
Andreas Schildbach
e9b42eae6d build.gradle: produce Java 8 bytecode for the core module
It will still only use the Java 7 API.
2021-09-28 16:38:31 +02:00
Andreas Schildbach
d6851edb2f build.gradle: Update OkHttp to 3.12.13. 2021-09-25 23:36:34 +02:00
Andreas Schildbach
2882d63616 build.gradle: Update BouncyCastle to 1.69. 2021-09-25 23:23:12 +02:00
Andreas Schildbach
47660f6418 build.gradle: migrate from protobuf-java to protobuf-javalite
This commit contains rather hard to review diffs to the protobuf test datasets in .txt format.
To aid the review, this Python script can be used to convert the data from the old to the new
format:

```
import sys

file = open(sys.argv[1])
outfile = open(sys.argv[1] + ".lite", "w")
line = file.readline()
lines = []

def sortAndPrint(group, removeLastLB=False, removeFirstLB=False):
    group.sort()
    if removeFirstLB and group[0] == "\n":
        group.remove("\n")
    for i in range(len(group)):
        if i == len(group) - 1 and removeLastLB:
            group[i] = group[i].rstrip()
        print(group[i], end="", file=outfile)

def sign32neg(value):
    if 0x80000000 <= value <= 0xFFFFFFFF:
        value &= 0x7FFFFFFF
        value = int(value)
        value = ~value
        value ^= 0x7FFFFFFF
    return value

def processPath(path):
    parts = path.rstrip().split(":")
    number = int(parts[1].lstrip())
    if number >= 0x80000000:
        number = sign32neg(number)
    return parts[0] + ": " + str(number) + "\n"

groupcount = 0
while len(line) > 0:
    if line.startswith("type:"):
        if len(lines):
            sortAndPrint(lines, removeFirstLB=groupcount==0)
            groupcount += 1
        lines.clear()
        lines.append(line)
    elif line.find("deterministic_key {") != -1:
        structure = line
        innerlines = []
        line = file.readline()
        while not line.startswith('}'):
            if line.find("path") != -1:  # preserve order of paths
                pathlines = processPath(line)
                line = file.readline()
                if line.startswith('}'):
                    innerlines.append(pathlines)
                    continue
                while line.find("path") != -1:
                    pathlines += processPath(line)
                    line = file.readline()
                innerlines.append(pathlines)
                if line.startswith('}'):
                    continue
            if line.startswith("  sigsRequiredToSpend"):
                line = line.replace("sigsRequiredToSpend", "sigs_required_to_spend")
            innerlines.append(line)
            line = file.readline()
        innerlines.sort()
        for l in innerlines:
            structure += l
        structure += line.rstrip() + "\n"
        lines.append(structure)
    elif line.find("path") != -1:  # preserve order of paths
        accountpathlines = processPath(line)
        line = file.readline()
        while line.find("path") != -1:
            accountpathlines += processPath(line)
            line = file.readline()
        lines.append(accountpathlines)
        lines.append(line)
    else:
        lines.append(line)
    line = file.readline()
print(file=outfile)
sortAndPrint(lines, removeLastLB=True)
file.close()
outfile.close()
```
2021-09-25 11:00:42 +02:00
Sean Gilligan
6da10f8641 build.gradle: Update SLF4J to 1.7.32. 2021-09-17 11:51:11 +02:00
Andreas Schildbach
8a775a37d8 build.gradle: Migrate from maven to maven-publish plugin
To publish to the local Maven repository, use `gradle publishToMavenLocal` rather than `gradle install`.
2021-09-01 01:37:28 +02:00
Andreas Schildbach
9174ae7495 build.gradle: Update JUnit to 4.13.1. 2021-02-11 13:01:30 +01:00
Andreas Schildbach
1bcea2a59c build.gradle: Update BouncyCastle to 1.68. 2021-01-09 23:41:26 +01:00
Andreas Schildbach
14673e6907 build.gradle: Update OkHttp to 3.12.12. 2020-10-17 00:29:01 +02:00
Andreas Schildbach
41ebd0aabe build.gradle: Update protobuf-java to 3.13.0. 2020-10-17 00:21:14 +02:00
Andreas Schildbach
e6c68d9758 build.gradle: Update Guava to 30.0-android. 2020-10-17 00:12:51 +02:00
Andreas Schildbach
dbdd60052e build.gradle: Update BouncyCastle to 1.66. 2020-10-17 00:09:40 +02:00
Sean Gilligan
f6c8b0dbe3 Coin: satoshi/long <-> btc/BigDecimal
* Add static utility methods: btcToSatoshi(), satoshiToBtc()
* Add static factory method: ofBtc()
* Add instance method: toBtc()
* Add hamcrest-library to testImplementation for BigDecimal comparison
2020-09-01 15:21:01 +02:00
Andreas Schildbach
fa16458c2f build.gradle: Update OkHttp to 3.12.11. 2020-05-09 22:54:55 +02:00
Sean Gilligan
8dbe23c9db build.gradle: Properly declare API dependencies in bitcoinj-core
Properly declare Bouncy Castle, protobuf-java, and OkHttp as Gradle `api`
dependencies.
2020-04-23 00:07:38 +02:00
Andreas Schildbach
1ce45ef679 Update Guava to 29.0-android. 2020-04-16 17:28:30 +02:00
Andreas Schildbach
f925c6313c Update BouncyCastle to 1.65. 2020-04-13 10:23:54 +02:00
Sean Gilligan
e4c6b98536 Make Guava an api dependency using java-library
Use the Gradle java-library plugin to make Guava an `api`
dependency since Guava types are used in the bitcoinj public API.

This allows us to remove explicit dependencies on
Guava in the other modules.
2020-02-29 15:28:09 -08:00
Sean Gilligan
5ade97b5b3 build.gradle: Make the 'core' submodule use the 'java-library' plugin, rather than 'java'. 2020-02-29 21:01:13 +01:00
Andreas Schildbach
f258cbc122 Update JUnit to 4.13. 2020-01-23 01:20:44 +01:00
Andreas Schildbach
0112e3ccbe Update slf4j to 1.7.30. 2020-01-23 01:16:58 +01:00
Andreas Schildbach
0473c748b9 Update OkHttp to 3.12.8. 2020-01-23 01:14:21 +01:00
Andreas Schildbach
68538e57af Update Guava to 28.2-android. 2020-01-23 01:09:35 +01:00