Improved UUIDs for Scala 3.
Find a file
Pat Garrity ea18f2e458
All checks were successful
/ Build and Test Library Snapshot (pull_request) Successful in 1m55s
(patch) update to latest scala, minor documentation/code improvements
2026-04-06 22:37:48 -05:00
.forgejo/workflows (patch) Change ordering to protect builds. (#11) 2024-04-27 02:17:55 +00:00
project (patch) update to latest scala, minor documentation/code improvements 2026-04-06 22:37:48 -05:00
src (patch) update to latest scala, minor documentation/code improvements 2026-04-06 22:37:48 -05:00
.gitignore (patch) version updates and doc updates (#15) 2025-07-28 02:37:36 +00:00
.pre-commit-config.yaml (patch) update to scala 3.8 (#16) 2026-01-25 03:42:58 +00:00
.scalafmt.conf (patch) update to latest scala, minor documentation/code improvements 2026-04-06 22:37:48 -05:00
build.sbt (patch) update to latest scala, minor documentation/code improvements 2026-04-06 22:37:48 -05:00
LICENSE Initializing the gs-uuid project with a tested implementation. 2023-12-20 22:07:25 -06:00
README.md (minor) Interface improvements, more functions, general version updates. (#14) 2025-03-22 16:29:43 +00:00

gs-uuid

GS Open Source | License (Apache 2.0)

UUIDs for Scala 3 with generation based on JUG, and serialization based on code from Jackson Databind. The only dependency is JUG, whereas the relevant Jackson code is copied to this implementation (and slightly modified).

This project uses the Apache 2.0 License due to the use of Jackson Databind code.

Usage

Dependency

This artifact is available in the Garrity Software Maven repository.

externalResolvers +=
  "Garrity Software Releases" at "https://maven.garrity.co/releases"

val GsUuid: ModuleID =
  "gs" %% "gs-uuid-v0" % "$VERSION"

Type

import gs.uuid.v0.UUID

given UUID.Generator = UUID.Generator.version7()

val id = UUID.generate()

println(id.str()) // 292c9bc70d0f4d998053d7b2f72cd9b7

Donate

Enjoy this project or want to help me achieve my goals? Consider Donating to Pat on Ko-fi.