Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.15 #47

Merged
merged 5 commits into from
May 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# configuration for https://travis-ci.org/dogecoin/libdohj
sudo: false
dist: bionic
language: java
jdk: oraclejdk8
install:
# before_install:
- sudo apt-get -qq update
- sudo apt-get install -y protobuf-compiler
matrix:
include:
- jdk: openjdk8
env: GRADLE_VERSION=6.7.1
- jdk: openjdk11
env: GRADLE_VERSION=6.7.1
install: true
before_script:
- gradle wrapper --gradle-version=$GRADLE_VERSION
script:
- gradle -q clean install
- jdk_switcher use openjdk7
- cd core
- gradle -q clean build
- ./gradlew clean build
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}

dependencies {
Expand Down
30 changes: 16 additions & 14 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven'

version = '0.15-SNAPSHOT'
archivesBaseName = 'libdohj-core'

dependencies {
compile 'org.bitcoinj:bitcoinj-core:0.15.9'
compile 'com.madgag.spongycastle:core:1.58.0.0'
api 'org.bitcoinj:bitcoinj-core:0.15.10'
implementation 'com.madgag.spongycastle:core:1.58.0.0'
implementation 'com.google.guava:guava:30.0-android'
implementation 'com.lambdaworks:scrypt:1.4.0'
implementation 'com.google.guava:guava:24.0-android'
compile 'com.google.protobuf:protobuf-java:3.5.1'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.google.protobuf:protobuf-java:3.13.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
implementation 'org.slf4j:slf4j-api:1.7.30'
implementation 'net.jcip:jcip-annotations:1.0'
compileOnly 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
testImplementation 'junit:junit:4.12'
testImplementation 'org.easymock:easymock:3.2'
testImplementation 'junit:junit:4.13.1'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.5.2'
testImplementation 'org.slf4j:slf4j-jdk14:1.7.25'
testImplementation 'com.h2database:h2:1.3.167'
testImplementation 'org.slf4j:slf4j-jdk14:1.7.30'
testImplementation 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
}

sourceCompatibility = 1.7
sourceCompatibility = 1.8

test {
exclude 'org/libdohj/net/NetworkAbstractionTests*'
testLogging {
events "failed"
exceptionFormat "full"
}
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.libdohj.params;

import org.bitcoinj.core.Utils;
import org.spongycastle.util.encoders.Hex;
import org.bouncycastle.util.encoders.Hex;

import static com.google.common.base.Preconditions.checkState;
import java.io.ByteArrayOutputStream;
Expand Down
17 changes: 6 additions & 11 deletions core/src/test/java/org/bitcoinj/core/AltcoinBlockTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015 jrn.
* Copyright 2015, 2021 Ross Nicoll.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,21 +15,16 @@
*/
package org.bitcoinj.core;

import java.util.BitSet;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;

import org.libdohj.params.DogecoinMainNetParams;

/**
*
* @author jrn
*/
import java.util.BitSet;

import static org.junit.Assert.assertEquals;

public class AltcoinBlockTest {
private final NetworkParameters params = DogecoinMainNetParams.get();
private static final NetworkParameters params = DogecoinMainNetParams.get();

@Before
public void setUp() throws Exception {
Expand Down
Loading