I got the above error while building mixed groovy-java project in jenkins. As mentioned in https://jenkins.io/blog/2018/01/13/jep-200/ --> "If the class(es) are defined in a third-party library bundled in your plugin, create a resource file META-INF/hudson.remoting.ClassFilter listing them. (example)"
I added the hudson.remoting.ClassFilter file with the following content: groovy.lang.Closure
Though my build was successful after adding this fix but I am not sure about how safe it is to do this. Security concerns?
So my question is, will the above fix whitelist all the groovy.lang.Closure or just the groovy.lang.Closure in my project. In short what is the scope of hudson.remoting.ClassFilter?