-
Notifications
You must be signed in to change notification settings - Fork 50
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
Consider Release per Upstream Dependency Change #181
Comments
v0.38.0 of the gradle-jpi-plugin upgrades the jenkins-test-harness from 2.31 -> 2.60, which causes an upgrade of htmlunit from 2.18 -> 2.36. This method is deprecated in htmlunit 2.21 and removed in 2.25. Its recommended replacement already exists in 2.18. jenkinsci/gradle-jpi-plugin#181
Migrate deprecated configurations to recommended replacements. jenkinsci/gradle-jpi-plugin#139 jenkinsci/gradle-jpi-plugin#181
I've been thinking about this problem and wanted to capture some ideas here. Added DependenciesThe plugin adds these dependencies to the target project when applied:
CategoriesI've been thinking of our dependencies as falling into four main categories, ordered here by how easy they are to maintain. 1. DeclaredExamples: jenkins-core and jenkins-war. By specifying 2. DerivedExample: groovy-all. Groovy is a transitive dependency of jenkins-core. If a user does nothing, they get the version that Jenkins runs with. 3. LatestExample: javapoet. This is a library used to generate a test class. It isn't deployed anywhere and there is no relationship to Jenkins. It'd be nice to always be on latest. Example: jenkins-test-harness. This receives fixes and enhancements on its own schedule. It should always be used at latest. 4. AlignedExample: servlet-api. This is a provided dependency for jenkins-core that is required for better error messages in annotation processing (#177). The version must align with either the embedded jetty version. Example: sezpoz. This is a dependency whose version we specify today, but would become derived if we started depending on the platform jenkins-bomThere are two main problems to solve with introducing jenkins-bom as a platform dependency. The first bom version is for 2.164.1 (lts; 2.195 weekly). We'll need to either explicitly stop supporting building Jenkins plugins that depend on core before this version, or generate and publish platforms for previous releases. It'd be helpful to know how many plugins today depend on a version later than or equal to 2.164.1. The second problem is verifying that each bom version provides all the dependency constraints we need. |
Choosing a Jenkins version recommends not going older than 4 minor LTS releases ago, because they're not supported by the update center. For example, if the current release is 2.332.3, the oldest supported version is 2.277.3 from 12 months earlier. Given the realities of needing to stay up-to-date to address vulnerabilities, it seems reasonable to follow a similar rolling schedule for support in this plugin. This would mean dropping support for anything that pre-dates the bom. |
In order to minimize breaking changes from dependencies
And maximize time to be notified of deprecations
As a gradle-jpi-plugin user
I want to release more frequently with smaller dependency changes
The release of v0.38.0 saw the jpi plugin bump the jenkins-test-harness version from 2.31 to 2.60 (#133).
This ended up being a breaking change for the jira-trigger-plugin because htmlunit upgraded from 2.18 -> 2.36.0.
A method in htmlunit was deprecated in 2.21 by HtmlUnit/htmlunit@d1697e8. It was removed in 2.25 by HtmlUnit/htmlunit@0371df2. Unfortunately since 29 versions were upgraded at once, the entire deprecation cycle was missed.
Ideally we'll want to strike the right balance, avoiding two things:
The text was updated successfully, but these errors were encountered: