Skip to content

Inline deprecated constant value#779

Merged
ejona86 merged 1 commit into
google:masterfrom
tresat:remove-artifact-attributes
Apr 10, 2025
Merged

Inline deprecated constant value#779
ejona86 merged 1 commit into
google:masterfrom
tresat:remove-artifact-attributes

Conversation

@tresat

@tresat tresat commented Apr 10, 2025

Copy link
Copy Markdown
Contributor

We are removing the deprecated ArtifactAttributes class from Gradle.

It is still used here: https://github.com/google/protobuf-gradle-plugin/blob/master/src/main/groovy/com/google/protobuf/gradle/ProtobufPlugin.groovy#L310.

It can be replaced by Attribute.of("artifactType", String). This PR does this.

Or, if you upgrade your build to Gradle >= 7.3, you can use the predefined ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE.

@ejona86
ejona86 merged commit b0f3205 into google:master Apr 10, 2025
@ejona86

ejona86 commented Apr 10, 2025

Copy link
Copy Markdown
Collaborator

Thanks. I took a look to see if there are any other internal usages and it seems we still have one other API added in c425e55 . We'll look into cleaning that up as well

@tresat

tresat commented Apr 10, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the quick reply! FYI, we're probably going to delay removal of this until Gradle 10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants