Skip to content

Migrate com:intellij:annotations to org.jetbrains:annotations#719

Merged
steve-aom-elliott merged 7 commits intomainfrom
289-com-intellij-annotations-to-org-jetbrains-annotations
May 13, 2025
Merged

Migrate com:intellij:annotations to org.jetbrains:annotations#719
steve-aom-elliott merged 7 commits intomainfrom
289-com-intellij-annotations-to-org-jetbrains-annotations

Conversation

@steve-aom-elliott
Copy link
Contributor

What's changed?

  • Adding declarative recipe for migrating com.intellij:annotations dependencies to org.jetbrains:annotations (the moving of the artifact is already indicated on Maven Central). As noted in the issue, the packages used within the dependencies were already using org.jetbrains.annotations back to the oldest available version of com.intelli:annotations (v5.1) so packages do not need to be migrated.

Checklist

@steve-aom-elliott steve-aom-elliott self-assigned this May 9, 2025
@steve-aom-elliott steve-aom-elliott added the good first issue Good for newcomers label May 9, 2025
@steve-aom-elliott steve-aom-elliott added the recipe Recipe requested label May 9, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite May 9, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

@steve-aom-elliott steve-aom-elliott force-pushed the 289-com-intellij-annotations-to-org-jetbrains-annotations branch from 297bd55 to f30917e Compare May 9, 2025 21:11
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

@timtebeek timtebeek marked this pull request as ready for review May 10, 2025 11:39
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

@steve-aom-elliott steve-aom-elliott force-pushed the 289-com-intellij-annotations-to-org-jetbrains-annotations branch from 5619c4a to 71388b1 Compare May 12, 2025 13:17
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

steve-aom-elliott and others added 5 commits May 12, 2025 09:35
…pendencies to `org.jetbrains:annotations`. As noted in the issue, the packages used within the dependencies were already using `org.jetbrains.annotations` back to the oldest available version of `com.intelli:annotations` so packages do not need to be migrated.
…onsToOrgJetbrainsAnnotationsTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onsToOrgJetbrainsAnnotationsTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@steve-aom-elliott steve-aom-elliott force-pushed the 289-com-intellij-annotations-to-org-jetbrains-annotations branch from 71388b1 to f4542aa Compare May 12, 2025 13:35
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 306-305

@steve-aom-elliott steve-aom-elliott moved this from In Progress to Ready to Review in OpenRewrite May 12, 2025
Copy link
Contributor

@Jenson3210 Jenson3210 left a comment

Choose a reason for hiding this comment

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

LGTM!
I pushed the update of the examples yaml and 1 chaining of the methods.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 3324-3323
    • lines 3370-3388

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 3282-3281
    • lines 3328-3346

…tion from the tests since they're programmatic validation
@steve-aom-elliott steve-aom-elliott force-pushed the 289-com-intellij-annotations-to-org-jetbrains-annotations branch from f28480b to 3375afd Compare May 12, 2025 20:46
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 3282-3281
    • lines 3328-3346

@steve-aom-elliott steve-aom-elliott merged commit f63fca7 into main May 13, 2025
2 checks passed
@steve-aom-elliott steve-aom-elliott deleted the 289-com-intellij-annotations-to-org-jetbrains-annotations branch May 13, 2025 14:39
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite May 13, 2025
Comment on lines +28 to +32
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.intellij
oldArtifactId: annotations
newGroupId: org.jetbrains
newVersion: latest.release
Copy link
Member

Choose a reason for hiding this comment

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

Should we add a change package recipe here as well? Or has that not changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The package name didn't change between the dependencies, no.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@steve-aom-elliott steve-aom-elliott May 13, 2025

Choose a reason for hiding this comment

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

#289 (comment) They confirmed they didn't change here I believe. For the sake of it, I did also manually verify that was the case by importing the older versions of the library and browsing them in IntelliJ.

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

Labels

good first issue Good for newcomers recipe Recipe requested

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants