mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
break out the FungibleAsset testing schemas into module to prevent having to publish a test-jar.
This commit is contained in:
parent
ccd3ce6d59
commit
5081fcc9a8
@ -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',
|
||||
|
@ -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
|
||||
|
34
finance/test-contracts/build.gradle
Normal file
34
finance/test-contracts/build.gradle
Normal 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
|
||||
}
|
@ -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) {
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user