Remove security manager policy files (#127727)

Now that security manager is gone, the policy files are no longer
needed. This commit removes the server, test and plugin specific policy
files
This commit is contained in:
Ryan Ernst 2025-05-06 10:37:46 -07:00 committed by GitHub
parent e3b000efba
commit 22a52a9c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 3 additions and 700 deletions

View file

@ -183,11 +183,7 @@ public class BasePluginBuildPlugin implements Plugin<Project> {
) {
var bundleSpec = project.copySpec();
bundleSpec.from(buildProperties);
bundleSpec.from(pluginMetadata, copySpec -> {
// metadata (eg custom security policy)
// the codebases properties file is only for tests and not needed in production
copySpec.exclude("plugin-security.codebases");
});
bundleSpec.from(pluginMetadata);
bundleSpec.from(
(Callable<TaskProvider<Task>>) () -> project.getPluginManager().hasPlugin("com.gradleup.shadow")
? project.getTasks().named("shadowJar")