mirror of
https://github.com/corda/corda.git
synced 2025-04-11 13:21:26 +00:00
Filter for Open Source and Enterprise modules. (#1514)
This commit is contained in:
parent
3d577e5eed
commit
5eab71caae
constants.properties
gradle-plugins/cordformation/src/main/groovy/net/corda/plugins
@ -1,4 +1,4 @@
|
||||
gradlePluginsVersion=0.16.3
|
||||
gradlePluginsVersion=0.16.4
|
||||
kotlinVersion=1.1.4
|
||||
guavaVersion=21.0
|
||||
bouncycastleVersion=1.57
|
||||
|
@ -70,8 +70,8 @@ class Cordformation implements Plugin<Project> {
|
||||
// We want to filter out anything Corda related or provided by Corda, like kotlin-stdlib and quasar
|
||||
def filteredDeps = directDeps.findAll { excludes.collect { exclude -> (exclude.group == it.group) && (exclude.name == it.name) }.findAll { it }.isEmpty() }
|
||||
filteredDeps.each {
|
||||
// net.corda may be a core dependency which shouldn't be included in this cordapp so give a warning
|
||||
if(it.group && it.group.contains('net.corda.')) {
|
||||
// net.corda or com.r3.corda.enterprise may be a core dependency which shouldn't be included in this cordapp so give a warning
|
||||
if (it.group && (it.group.startsWith('net.corda.') || it.group.startsWith('com.r3.corda.enterprise.'))) {
|
||||
logger.warn("You appear to have included a Corda platform component ($it) using a 'compile' or 'runtime' dependency." +
|
||||
"This can cause node stability problems. Please use 'corda' instead." +
|
||||
"See http://docs.corda.net/cordapp-build-systems.html")
|
||||
|
Loading…
x
Reference in New Issue
Block a user