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

Download Maven extensions instead of bundling them #476

Merged
merged 6 commits into from
Sep 3, 2024

Conversation

welandaz
Copy link
Member

@welandaz welandaz commented Aug 30, 2024

This PR removes the bundling of Develocity and CCUD Maven extensions.
Instead, the extensions are now downloaded from Maven Central. This enables the user to specify the version of the extensions they need and keep using the same plugin version.

This change is not backwards compatible and users would need to explicitly specify the extension versions after an upgrade.

Screenshot 2024-08-30 at 09 21 13

@welandaz welandaz self-assigned this Aug 30, 2024
Copy link
Contributor

@alextu alextu left a comment

Choose a reason for hiding this comment

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

Have you been able to manually test the upgrade path when the "old" plugin has the injection enabled?

README.adoc Outdated
See <<Enable auto-injection>> for details.
The compatibility of the specified version with Develocity can be found https://docs.gradle.com/enterprise/compatibility/#maven_extension[here].

For the optional Common Custom User Data Maven extension which is defined the same form, you can see the compatibility of the specified version with the Develocity Maven extension https://github.com/gradle/common-custom-user-data-maven-extension#version-compatibility[here].

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we put a warning note explaining that the injection will not work after upgrading referencing jenkins-infra/helpdesk#4263.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about adding it to the release notes only.
Do you think we should mention it in the README as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, seems like a breaking change that should stay, see for example what we did when requiring Develocity 2024.1 https://github.com/gradle/develocity-gitlab-templates?tab=readme-ov-file#requirements

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, although I'd update a Readme at the time of release, as it might be confusing to have this mentioned already without a version available

@welandaz
Copy link
Member Author

welandaz commented Sep 2, 2024

Have you been able to manually test the upgrade path when the "old" plugin has the injection enabled?

Yes, the injection get's disabled after an upgrade as the configuration fields are no longer there and it triggers the "disable injection" code path. User's would need to specify the extension versions explicitly and re-enable it again

@welandaz welandaz merged commit 4610ed4 into master Sep 3, 2024
15 of 18 checks passed
@welandaz welandaz deleted the welandaz/download-extension-jars branch September 3, 2024 13:43
@welandaz welandaz mentioned this pull request Sep 6, 2024
alextu pushed a commit that referenced this pull request Sep 25, 2024
* Download Maven extensions instead of bundling them

* Set extension versions properly in test

* Fix Gradle Enterprise extension selection

* Fix acceptance tests

* Revert back the maven version for test

* Revert README change for a separate pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants