Gradle's War task has two setters for its class path:
BootJar lacks these methods which restricts you to only making additive changes to the classpath. It's also inconsistent with what Gradle offers (and what BootWar offers by being a War subclass) so I consider this to be a bug.