Skip to content

Commit

Permalink
Merge pull request #25768 Align name on IdentifyTransformExecutionPro…
Browse files Browse the repository at this point in the history
…gressDetails

with `PlannedTransformStepIdentity`. The String `inputArtifact` doesn't add any value and we didn't use it on `PlannedTransformStepIdentity` either.

Co-authored-by: Stefan Wolf <wolf@gradle.com>
  • Loading branch information
bot-gradle and wolfs committed Jul 14, 2023
2 parents cae0892 + a847b8f commit 4c3fd32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class ArtifactTransformExecutionBuildOperationIntegrationTest extends AbstractIn

def executionIdentifications = buildOperations.progress(IdentifyTransformExecutionProgressDetails)*.details
executionIdentifications.size() == 2
def projectTransformIdentification = executionIdentifications.find { it.inputArtifactName == 'producer.jar' }
def externalTransformIdentification = executionIdentifications.find { it.inputArtifactName == 'test-4.2.jar' }
def projectTransformIdentification = executionIdentifications.find { it.artifactName == 'producer.jar' }
def externalTransformIdentification = executionIdentifications.find { it.artifactName == 'test-4.2.jar' }

List<BuildOperationRecord> executions = getTransformExecutions()
executions.size() == 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,12 @@ public Map<String, String> getToAttributes() {
}

@Override
public org.gradle.operations.dependencies.variants.ComponentIdentifier getInputArtifactComponentIdentifier() {
public org.gradle.operations.dependencies.variants.ComponentIdentifier getComponentId() {
return ComponentToOperationConverter.convertComponentIdentifier(componentIdentifier);
}

@Override
public String getInputArtifactName() {
public String getArtifactName() {
return inputArtifact.getName();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public interface IdentifyTransformExecutionProgressDetails {
/**
* The component identifier of the input artifact.
*/
ComponentIdentifier getInputArtifactComponentIdentifier();
ComponentIdentifier getComponentId();

/**
* The from attributes of the registered transform.
Expand All @@ -59,7 +59,7 @@ public interface IdentifyTransformExecutionProgressDetails {
/**
* The file name of the input artifact that is about to be transformed.
*/
String getInputArtifactName();
String getArtifactName();

/**
* The class of the transform action.
Expand Down

0 comments on commit 4c3fd32

Please sign in to comment.