Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add classpath isolation #87

Open
remmeier opened this issue Jul 6, 2018 · 0 comments
Open

Add classpath isolation #87

remmeier opened this issue Jul 6, 2018 · 0 comments

Comments

@remmeier
Copy link

remmeier commented Jul 6, 2018

The deployNodes task is need need of quite a number of dependencies for its execution (Guava, Bouncycastle). In a larger multi-project Gradle project I run into problems because of versioning issues of the dependencies. I did not analyze the issue in detail. I guess some of those dependencies come from the Gradle classpath rather than the application compile classpath. It would be great if the plugin runs more or less fully isolated. Some typical patterns are using a custom classloader isolated from the Gradle classloader or using https://github.com/project-aries/docker-java-shaded.

I managed to get it working by adding all the corda dependencies onto the Gradle classpath, but that is something I really do not want to do:

buildscript{
dependencies{
classpath "net.corda:corda-core:$corda_release_version"
classpath "net.corda:corda-finance:$corda_release_version"
classpath "net.corda:corda-jackson:$corda_release_version"
classpath "net.corda:corda-rpc:$corda_release_version"
classpath "net.corda:corda-webserver-impl:$corda_release_version"
classpath "net.corda:corda:$corda_release_version"
classpath "net.corda:corda-webserver:$corda_release_version"
..
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant