Made a failure! You are not allowed to overwrite whole sourceSets.main.RuntimeClasspath as the new set(and so the .war) will not contain any classfiles!
This hotfix will only let all classes and the necessary lib(swagger .jars; not transitiv) into the .war.