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'
|
2017-10-09 19:08:08 +00:00
|
|
|
apply plugin: 'net.corda.plugins.cordapp'
|
2017-06-26 17:07:56 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2016-02-11 14:55:52 +00:00
|
|
|
|
2016-12-06 10:49:46 +00:00
|
|
|
description 'Corda finance modules'
|
|
|
|
|
2018-12-19 18:02:51 +00:00
|
|
|
/**
|
|
|
|
* NOTE: this build.gradle file is maintained for backwards compatibility purposes.
|
|
|
|
* It will build a `corda-finance.jar` including all Contracts and Flows.
|
|
|
|
* From Corda 4 it is strongly recommended that CorDapps dependent on the `corda-finance.jar`
|
|
|
|
* explicitly declare dependencies on either/both of the corda finance sub-modules:
|
|
|
|
* corda-finance-contract => generates `corda-finance-contract.jar`
|
|
|
|
* corda-finance-workflows => generates `corda-finance-workflows.jar`
|
|
|
|
* Third party CorDapps should remember to include these sub-module dependencies using the `cordapp` Corda Gradle plug-in
|
|
|
|
* cordapp project(':finance:workflows')
|
|
|
|
* cordapp project(':finance:contracts')
|
|
|
|
*/
|
|
|
|
|
|
|
|
def mainProjects = [':finance:contracts',':finance:workflows', ':confidential-identities']
|
|
|
|
|
|
|
|
jar.dependsOn mainProjects.collect{ it+":compileJava"}
|
2017-06-06 14:05:47 +00:00
|
|
|
jar {
|
|
|
|
baseName 'corda-finance'
|
2018-12-19 18:02:51 +00:00
|
|
|
from files(mainProjects.collect{ project(it).sourceSets.main.output })
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|
|
|
|
|
2018-05-21 16:00:30 +00:00
|
|
|
cordapp {
|
2018-12-19 18:02:51 +00:00
|
|
|
signing {
|
|
|
|
enabled false
|
|
|
|
}
|
2018-12-14 09:39:23 +00:00
|
|
|
targetPlatformVersion corda_platform_version.toInteger()
|
|
|
|
minimumPlatformVersion 1
|
|
|
|
contract {
|
2018-12-19 18:02:51 +00:00
|
|
|
name "Corda Finance Demo"
|
2018-12-14 09:39:23 +00:00
|
|
|
versionId 1
|
|
|
|
vendor "R3"
|
|
|
|
licence "Open Source (Apache 2)"
|
|
|
|
}
|
|
|
|
workflow {
|
2018-12-19 18:02:51 +00:00
|
|
|
name "Corda Finance Demo"
|
2018-12-14 09:39:23 +00:00
|
|
|
versionId 1
|
|
|
|
vendor "R3"
|
|
|
|
licence "Open Source (Apache 2)"
|
2018-05-21 16:00:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-06 14:05:47 +00:00
|
|
|
publish {
|
2017-07-18 11:34:56 +00:00
|
|
|
name jar.baseName
|
2017-08-29 08:56:26 +00:00
|
|
|
}
|