GithubPackageRegistryMavenPublishPlugin implements Plugin<Project> { @Override public void apply(Project project) { project.getPlugins().apply(MavenPublishPlugin.class); project.getPlugins().apply(GithubPomPlugin.class); githubExtension = project.getRootProject().getExtensions().getByType(GithubExtension.class); project.afterEvaluate(this::registerGitHubPackagesRepository); }  @Override void apply(Project project);  }
@Test void apply() { project.getPlugins().apply(GithubPackageRegistryMavenPublishPlugin.class); }