Search in sources :

Example 1 with TransformAction

use of org.gradle.api.artifacts.transform.TransformAction in project gradle by gradle.

the class DefaultTransformer method newTransformAction.

private TransformAction<?> newTransformAction(Provider<FileSystemLocation> inputArtifactProvider, ArtifactTransformDependencies artifactTransformDependencies, @Nullable InputChanges inputChanges) {
    TransformParameters parameters = isolatedParameters.get().getIsolatedParameterObject().isolate();
    ServiceLookup services = new IsolationScheme<>(TransformAction.class, TransformParameters.class, TransformParameters.None.class).servicesForImplementation(parameters, internalServices);
    services = new TransformServiceLookup(inputArtifactProvider, requiresDependencies ? artifactTransformDependencies : null, inputChanges, services);
    return instanceFactory.newInstance(services);
}
Also used : ServiceLookup(org.gradle.internal.service.ServiceLookup) TransformAction(org.gradle.api.artifacts.transform.TransformAction) TransformParameters(org.gradle.api.artifacts.transform.TransformParameters)

Aggregations

TransformAction (org.gradle.api.artifacts.transform.TransformAction)1 TransformParameters (org.gradle.api.artifacts.transform.TransformParameters)1 ServiceLookup (org.gradle.internal.service.ServiceLookup)1