-
Notifications
You must be signed in to change notification settings - Fork 77
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
Migrate from com.intellij:annotations
to org.jetbrains:annotations
#289
Comments
com.intellij:annotations
-> org.jetbrains:annotations
com.intellij:annotations
to org.jetbrains:annotations
Good suggestion, and should be an easy change. Could even fold that under the existing efforts we have for nullability annotations |
This would go beyond nullability as there are many other annotations within that package. I supposed that we can target nullability as a first step |
So I'm seeing a number of different artifacts related to this:
The oldest and smallest 1 seems to have moved to 2, while 3 contains a smaller subset of 2. All three seem to use |
Since there's multiple classes and artifacts involved here I'd suggest we start with a declarative recipe that changes GAVs and package names, such that users are able to switch from older dependencies to latest. Likely something that best fits into rewrite-migrate-java until we have a better place for these. Should possible to mostly compose these through https://app.moderne.io/recipes/builder and add some tests for good measure.
Could you provide the details on what older GAV had the |
I am a bit confused as to why you cannot see the coordinates but this is an example : https://mvnrepository.com/artifact/com.intellij/annotations/12.0 <dependency>
<groupId>com.intellij</groupId>
<artifactId>annotations</artifactId>
<version>12.0</version>
</dependency> Could you please clarify what you mean? |
I did additional digging, but I could not find any version before 5.1 |
One more interesting metric is that according to Maven central, this is used in 4309 components |
Guess we have a declarative recipe to write and execute through Moderne! :) |
What problem are you trying to solve?
The
com.intellij:annotations
package was relocated toorg.jetbrains:annotations
after v12 (2013)This caused confusion and many teams are unaware and still using the old coordinates.
Describe the situation after applying the recipe
There are various examples, but here is one :
The text was updated successfully, but these errors were encountered: