Search in sources :

Example 1 with PluginResolution

use of org.gradle.plugin.use.resolve.internal.PluginResolution in project gradle by gradle.

the class PluginResolutionServiceResolver method handleLegacy.

private void handleLegacy(final PluginUseMetaData metadata, PluginResolutionResult result) {
    final PluginId pluginId = DefaultPluginId.of(metadata.id);
    result.found(getDescription(), new PluginResolution() {

        @Override
        public PluginId getPluginId() {
            return pluginId;
        }

        public void execute(PluginResolveContext context) {
            context.addLegacy(pluginId, metadata.implementation.get("repo"), metadata.implementation.get("gav"));
        }
    });
}
Also used : PluginResolution(org.gradle.plugin.use.resolve.internal.PluginResolution) ClassPathPluginResolution(org.gradle.plugin.use.resolve.internal.ClassPathPluginResolution) PluginResolveContext(org.gradle.plugin.use.resolve.internal.PluginResolveContext) PluginId(org.gradle.plugin.use.PluginId) DefaultPluginId(org.gradle.plugin.use.internal.DefaultPluginId)

Aggregations

PluginId (org.gradle.plugin.use.PluginId)1 DefaultPluginId (org.gradle.plugin.use.internal.DefaultPluginId)1 ClassPathPluginResolution (org.gradle.plugin.use.resolve.internal.ClassPathPluginResolution)1 PluginResolution (org.gradle.plugin.use.resolve.internal.PluginResolution)1 PluginResolveContext (org.gradle.plugin.use.resolve.internal.PluginResolveContext)1