use of org.gradle.tooling.internal.protocol.events.InternalPluginIdentifier in project gradle by gradle.
the class PluginApplicationTracker method createAndTrack.
private void createAndTrack(BuildOperationDescriptor buildOperation, String targetType, long applicationId, Supplier<InternalPluginIdentifier> pluginSupplier) {
if (PROJECT_TARGET_TYPE.equals(targetType)) {
InternalPluginIdentifier plugin = pluginSupplier.get();
if (plugin != null) {
PluginApplication pluginApplication = new PluginApplication(applicationId, plugin);
pluginApplicationRegistry.put(applicationId, pluginApplication);
track(buildOperation, pluginApplication);
}
}
}
use of org.gradle.tooling.internal.protocol.events.InternalPluginIdentifier in project gradle by gradle.
the class TaskOperationMapper method createDescriptor.
@Override
public DefaultTaskDescriptor createDescriptor(ExecuteTaskBuildOperationDetails details, BuildOperationDescriptor buildOperation, @Nullable OperationIdentifier parent) {
OperationIdentifier id = buildOperation.getId();
String taskIdentityPath = buildOperation.getName();
String displayName = buildOperation.getDisplayName();
String taskPath = details.getTask().getIdentityPath().getPath();
Set<InternalOperationDescriptor> dependencies = operationDependenciesResolver.resolveDependencies(details.getTaskNode());
InternalPluginIdentifier originPlugin = taskOriginTracker.getOriginPlugin(details.getTask().getTaskIdentity());
DefaultTaskDescriptor descriptor = new DefaultTaskDescriptor(id, taskIdentityPath, taskPath, displayName, parent, dependencies, originPlugin);
descriptors.put(details.getTask().getTaskIdentity(), descriptor);
return descriptor;
}
Aggregations