Frequently Asked Questions¶
Answers to common questions.
License: Can I use Vaultaire with my project?¶
Yes, Vaultaire can be used as a library/dependency with no side-effect to your project. Vaultaire is distributed under the GNU Lesser General Public License or LGPL, the same license adopted by Corda dependencies like Hibernate.
Use with Corda Enterprise¶
To use Vaultaire with Corda Enterprise, you will have to update your build to use the CE release.
After switching to the appropriate corda_release_group
and corda_release_version
in your ext
section, you can
instruct your build to substitute transitive Corda OS dependencies with their CE equivalents:
allprojects {
//...
configurations {
all {
//...
resolutionStrategy {
// ...
eachDependency { DependencyResolveDetails details ->
// Exclude from substitutions as appropriate, e.g.
def exclusions = ['corda-finance-contracts']
// Substitute the rest, assumes `ext.corda_release_group` and `ext.corda_release_version` are set
if (details.requested.group == "net.corda" && !exclusions.contains(details.requested.name)) {
// Force Corda Enterprise
details.useTarget group: corda_release_group, name: details.requested.name, version: corda_release_version
}
}
}
}
}
}
Note: The above assumes
ext.corda_release_group
andext.corda_release_version
are already set, e.g. tocom.r3.corda
and4.2
respectively.