Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gradle wrapper to 8.11.1 #819

Merged
merged 1 commit into from
Dec 31, 2024
Merged

update gradle wrapper to 8.11.1 #819

merged 1 commit into from
Dec 31, 2024

Conversation

wakingrufus
Copy link
Collaborator

@wakingrufus wakingrufus commented Dec 10, 2024

add gradle api version metadata to plugin artifact
update max gradle version for testing to 8.11.1

update max gradle version for testing to 8.11.1
add gradle api version metadata to plugin artifact
@wakingrufus wakingrufus changed the title update gradle wrapper to 8.11.2 update gradle wrapper to 8.11.1 Dec 10, 2024
@wakingrufus wakingrufus marked this pull request as ready for review December 10, 2024 15:48
@@ -306,6 +306,12 @@ fun setupPublishingEnvironment() {

setupPublishingEnvironment()

configurations.named("implementation") {
attributes {
attribute(GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE, objects.named("7.4"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this? Also, why is this version hard coded? What is it related to?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a way of declaring gradle module metadata to express the minimum gradle API needed. Its similar to how gradle detects when you try to use a library compiled on jdk11 in a jdk8 project. https://docs.gradle.org/current/userguide/variant_attributes.html#sec:gradle-plugins-default-attributes

This way, we don't need to programmatically check the gradle version. The version i selected here aligns with the minimum gradle version we support and test against

@wakingrufus wakingrufus merged commit 41f54f5 into main Dec 31, 2024
16 of 17 checks passed
@wakingrufus wakingrufus deleted the update-gradle branch December 31, 2024 18:13
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