break out the FungibleAsset testing schemas into module to prevent having to publish a test-jar.

This commit is contained in:
Stefano Franz 2019-01-03 15:58:16 +00:00 committed by Stefano Franz
parent ccd3ce6d59
commit 5081fcc9a8
11 changed files with 38 additions and 8 deletions

View File

@ -366,6 +366,7 @@ bintrayConfig {
'corda-finance', // maintained for backwards compatibility only
'corda-finance-workflows',
'corda-finance-contracts',
'corda-finance-test-contracts',
'corda-node',
'corda-node-api',
'corda-test-common',

View File

@ -15,6 +15,7 @@ dependencies {
// cordapp project(':finance:workflows')
// cordapp project(':finance:contracts')
cordaCompile project(':core')
cordaCompile project(':core')
compile project(':confidential-identities')
// For JSON
@ -32,11 +33,6 @@ configurations {
testArtifacts.extendsFrom testRuntime
}
task testJar(type: Jar) {
classifier "tests"
from sourceSets.test.output
}
jar {
baseName 'corda-finance-contracts'
manifest {
@ -45,9 +41,6 @@ jar {
}
}
artifacts {
testArtifacts testJar
}
cordapp {
signing {
enabled false

View File

@ -0,0 +1,34 @@
apply plugin: 'kotlin'
// Java Persistence API support: create no-arg constructor
// see: http://stackoverflow.com/questions/32038177/kotlin-with-jpa-default-constructor-hell
apply plugin: 'kotlin-jpa'
apply plugin: CanonicalizerPlugin
description 'Corda finance module - testing contracts'
dependencies {
compile project(':core')
compile project(':confidential-identities')
// For JSON
compile "com.fasterxml.jackson.core:jackson-databind:${jackson_version}"
compile project(':test-utils')
compile project(path: ':core', configuration: 'testArtifacts')
compile "junit:junit:$junit_version"
// AssertJ: for fluent assertions for testing
compile "org.assertj:assertj-core:$assertj_version"
}
jar {
baseName 'corda-finance-test-contracts'
manifest {
attributes('Corda-Revision': 'n/a')
attributes('Corda-Vendor': 'Corda Open Source')
}
}
publish {
name jar.baseName
}

View File

@ -185,6 +185,7 @@ dependencies {
compile "com.palominolabs.metrics:metrics-new-relic:${metrics_new_relic_version}"
testCompile(project(':test-cli'))
testCompile(project(':finance:test-contracts'))
}
tasks.withType(JavaCompile) {

View File

@ -5,6 +5,7 @@ include 'confidential-identities'
include 'finance' // maintained for backwards compatibility only
include 'finance:contracts'
include 'finance:workflows'
include 'finance:test-contracts'
include 'isolated'
include 'core'
include 'docs'