-
Notifications
You must be signed in to change notification settings - Fork 16
Rename oslc4j-client to lyo-client and refactor #106
Comments
I guess, but it's API breaking. The pattern as oslc4{lang}-client back when Lyo was intended to support multiple languages. Might be better to leave it a lone. |
Now, the REAL problem is not a pesky package name but that the old client uses namespace Another thing I am really not happy about is that all exceptions and resource classes were duplicated and now we'll have to deprecate them twice (strange that we are releasing classes that were never released before as deprecated right from the start). I see no need for that. I think we can easily extract them into a common package that both the new and old client would depend on this common package. Finally, the reason I am raising this is because we will be stuck with it all the way till 5.0. P.S. An answer to the Jim's reply he posted while I was drafting it: 4.0.0 is not yet released so no API breakage is there. Anyone who depends on SNAPSHOT does that at their own risk 🤷♂️ Finally, I don't want to add a new package with the name that follows |
I'm ok with your suggestion. |
Regarding package namespace suggestions, I will go first with 3 non-ideal suggestions:
So, the final suggestion:
|
Haha, the third non-ideal solution got lost along the way :) |
One final suggestion is to make a 4.0.0.M2 release before that to provide a temporary but reliable workaround for all the SNAPSHOT code out there. |
I prefer Oslc over Lyo prefix because it has stronger functional cohesion. Lyo is a project while OSLC is a technical architecture and standard. The API is for the standard, not the project. You can drop the 4j, its obvious its java. That might make the old and new easier to distinguish. |
oslc-client is fine with me too are we in agreement over the rest of the points? |
Just discussed with Jad and OKed. With Jim's change the final plan is:
|
Rationale: we are trying to have all projects be named lyo-xyz and drop OSLC4J. I am also constantly confused with which of them is new and which is old.
Action plan
oslc-java-client
stays with the same name, package namespace (org.eclipse.lyo.client.oslc
), and a bumped version 4.0 but with all classes underclient.oslc
andclient.jazz
deprecated.oslc4j-client
is renamed tooslc-client
andorg.eclipse.lyo.oslc4j.client
code is moved toorg.eclipse.lyo.client
. Note thatoslc
is missing at the end and this is how we avoid clashes technically.Also, classes are renamed fromdropped because of disagreement over the package nameOslcClientXYZ
toLyoClientXYZ
; this is how we signal to developers which classes to use.client.exception
andclient.resources
are moved into two differnt packages (read below why) and previously discussed deprecations are made toclient.resources
becauselyo-domains
is preferred. NB! Check the steps taken in Move DS classes from Lyo Client lyo.domains#20oslc-java-client
depends onoslc-client-base
(where I will moveclient.exception
code) andoslc-java-client-resources
(whereclient.resources
will go). However,lyo-client
will only depend onlyo-client-base
and users will be advised to depend onlyo-domains
BUT they will be able to also loadoslc-java-client-resources
if really needed.The text was updated successfully, but these errors were encountered: