2016-02-11 14:55:52 +00:00
|
|
|
apply plugin: 'kotlin'
|
2017-02-16 11:02:36 +00:00
|
|
|
// Java Persistence API support: create no-arg constructor
|
|
|
|
// see: http://stackoverflow.com/questions/32038177/kotlin-with-jpa-default-constructor-hell
|
|
|
|
apply plugin: 'kotlin-jpa'
|
2016-02-11 14:55:52 +00:00
|
|
|
apply plugin: CanonicalizerPlugin
|
2016-11-18 14:41:06 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
2016-02-11 14:55:52 +00:00
|
|
|
|
2016-12-06 10:49:46 +00:00
|
|
|
description 'Corda finance modules'
|
|
|
|
|
2016-02-11 14:55:52 +00:00
|
|
|
dependencies {
|
2016-02-16 14:10:51 +00:00
|
|
|
compile project(':core')
|
2017-05-05 14:14:43 +00:00
|
|
|
compile project(':node-schemas')
|
2016-05-19 09:25:18 +00:00
|
|
|
|
2016-08-30 12:50:02 +00:00
|
|
|
testCompile project(':test-utils')
|
2017-03-24 13:33:54 +00:00
|
|
|
testCompile project(path: ':core', configuration: 'testArtifacts')
|
2017-01-03 14:15:23 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
2017-03-23 17:32:14 +00:00
|
|
|
|
|
|
|
// TODO: Upgrade to junit-quickcheck 0.8, once it is released,
|
|
|
|
// because it depends on org.javassist:javassist instead
|
|
|
|
// of javassist:javassist.
|
|
|
|
testCompile "com.pholser:junit-quickcheck-core:$quickcheck_version"
|
|
|
|
testCompile "com.pholser:junit-quickcheck-generators:$quickcheck_version"
|
2016-07-21 12:55:40 +00:00
|
|
|
}
|
|
|
|
|
2017-03-23 17:32:14 +00:00
|
|
|
configurations.testCompile {
|
|
|
|
// Excluding javassist:javassist because it clashes with Hibernate's
|
|
|
|
// transitive org.javassist:javassist dependency.
|
|
|
|
// TODO: Remove this exclusion once junit-quickcheck 0.8 is released.
|
|
|
|
exclude group: 'javassist', module: 'javassist'
|
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
2017-06-22 09:35:49 +00:00
|
|
|
configurations {
|
|
|
|
testArtifacts.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
task testJar(type: Jar) {
|
|
|
|
classifier "tests"
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
testArtifacts testJar
|
|
|
|
}
|
|
|
|
|
2017-06-06 14:05:47 +00:00
|
|
|
jar {
|
|
|
|
baseName 'corda-finance'
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
name = jar.baseName
|
|
|
|
}
|