cuid icon indicating copy to clipboard operation
cuid copied to clipboard

Question: Is there an active Java implementation?

Open jmaister opened this issue 4 years ago • 1 comments

I would like to use cuid in a Java project. I've seen there is a link to a project, however, it is archived.

Is there any active Java implementation?

If not, I could implement it and keep it updated.

jmaister avatar Jan 29 '22 19:01 jmaister

If it's not linked, I'm not aware of it.

ericelliott avatar Jan 30 '22 21:01 ericelliott

Hello @ericelliott @jmaister,

I've uploaded my Java implementation of the CUID compatible with Java 8 and above. You can find it in this repos: https://github.com/thibaultmeyer/cuid-java.

It would be interesting to create an organization to gather all the implementations in the same place as well as the source of the web site. "usecuid" (like the website domain) is available, could be a good name for the organization. What do you think about this idea?

thibaultmeyer avatar Oct 21 '22 08:10 thibaultmeyer

Open a PR and reference this issue number, and I'll merge into the list of CUID ports.

Organizations cost money to maintain (GitHub Free is missing crucial features like protected branches), so unless we get funding, I'm not going to create an org unless somebody wants to guarantee funding.

ericelliott avatar Oct 23 '22 01:10 ericelliott

OK I will open a PR to reference this new java implementation.

EDIT: Just try on my organization (free plan), protection rule can be used (tested with "require CI success before merge" and "require a PR" rules). The use of roles defining the people/Teams allowed to write/read/only manage PR/... on each repository works very well too (like many open source projects that don't want to pay github).

EDIT 2: PR is open https://github.com/paralleldrive/cuid/pull/268

thibaultmeyer avatar Oct 23 '22 05:10 thibaultmeyer

Merged.

ericelliott avatar Oct 26 '22 20:10 ericelliott