mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 13:22:42 +01:00
test-support: add new module for test data and utilities
This commit is contained in:
parent
29b1f1a341
commit
5a852df6cc
@ -14,6 +14,8 @@ dependencies {
|
||||
api 'com.google.protobuf:protobuf-javalite:4.27.3'
|
||||
implementation 'org.slf4j:slf4j-api:2.0.13'
|
||||
implementation 'net.jcip:jcip-annotations:1.0'
|
||||
|
||||
testImplementation project(':bitcoinj-test-support')
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.easymock:easymock:5.4.0'
|
||||
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
|
||||
|
@ -19,6 +19,9 @@ if (!JavaVersion.current().isJava11Compatible()) {
|
||||
|
||||
rootProject.name = 'bitcoinj-parent'
|
||||
|
||||
include 'test-support'
|
||||
project(':test-support').name = 'bitcoinj-test-support'
|
||||
|
||||
include 'core'
|
||||
project(':core').name = 'bitcoinj-core'
|
||||
|
||||
|
@ -17,6 +17,9 @@ if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
|
||||
throw new GradleScriptException("bitcoinj build requires Java 17 or later", null)
|
||||
}
|
||||
|
||||
include 'test-support'
|
||||
project(':test-support').name = 'bitcoinj-test-support'
|
||||
|
||||
include 'core'
|
||||
project(':core').name = 'bitcoinj-core'
|
||||
|
||||
|
22
test-support/build.gradle
Normal file
22
test-support/build.gradle
Normal file
@ -0,0 +1,22 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api project(':bitcoinj-core')
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs.addAll(['--release', '8'])
|
||||
options.compilerArgs << '-Xlint:deprecation'
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
ext.moduleName = 'org.bitcoinj.test-support'
|
||||
|
||||
jar {
|
||||
inputs.property("moduleName", moduleName)
|
||||
manifest {
|
||||
attributes 'Automatic-Module-Name': moduleName
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user