In some cases, executing the Gradle task
can break the Corda build with an exception like this:
The problem is that our cordformation Gradle plugin forgets to unload any SecurityProvider instances (e.g. BouncyCastle) that the Network Bootstrapper installs, which allows them to be used by and linked with other classes. This eventually results in a JVM linker exception.
In the interest of keeping the contents of the Network Bootstapper's ClassLoader as small as possible, we will also revert here. Any SLF4J back-end that the Network Bootstrapper wants to use can be set using Gradle's runtimeOnly configuration intead of testRuntime.