{"id":15523107,"url":"https://github.com/xuwei-k/shapeless-java-records","last_synced_at":"2025-10-10T05:35:24.669Z","repository":{"id":38036614,"uuid":"299541379","full_name":"xuwei-k/shapeless-java-records","owner":"xuwei-k","description":"derive `shapeless.Generic` instances for Java Records and Sealed Classes","archived":false,"fork":false,"pushed_at":"2025-09-07T07:16:22.000Z","size":111,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-07T09:17:08.099Z","etag":null,"topics":["generic-programming","java","macros","scala","shapeless"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuwei-k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-29T07:41:01.000Z","updated_at":"2025-09-07T07:16:25.000Z","dependencies_parsed_at":"2023-02-15T16:01:21.596Z","dependency_job_id":"53324e48-ed86-4705-abfe-61f9626656de","html_url":"https://github.com/xuwei-k/shapeless-java-records","commit_stats":{"total_commits":239,"total_committers":3,"mean_commits":79.66666666666667,"dds":0.4225941422594143,"last_synced_commit":"6e6043827bda7f2c24daff6aa9ad83b2937d1fea"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/xuwei-k/shapeless-java-records","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fshapeless-java-records","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fshapeless-java-records/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fshapeless-java-records/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fshapeless-java-records/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuwei-k","download_url":"https://codeload.github.com/xuwei-k/shapeless-java-records/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fshapeless-java-records/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002886,"owners_count":26083468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generic-programming","java","macros","scala","shapeless"],"created_at":"2024-10-02T10:43:32.103Z","updated_at":"2025-10-10T05:35:24.635Z","avatar_url":"https://github.com/xuwei-k.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shapeless java records\n\n[![scaladoc](https://javadoc.io/badge2/com.github.xuwei-k/shapeless-java-records_2.13/javadoc.svg)](https://javadoc.io/doc/com.github.xuwei-k/shapeless-java-records_2.13)\n\n## setup\n\n- install jdk 15 or later\n- `build.sbt`\n\n```scala\n// if jdk 15 or 16\njavacOptions ++= Seq(\"--enable-preview\", \"--release\", scala.util.Properties.javaSpecVersion)\n\nscalaVersion := // 2.12.x or 2.13.x\n\nlibraryDependencies += \"com.github.xuwei-k\" %% \"shapeless-java-records\" % \"latest version\"\n\n// https://github.com/scala/bug/issues/11908\n// https://github.com/scala/bug/issues/12159\ncompileOrder := CompileOrder.JavaThenScala\n```\n\n- run `sbt -J--enable-preview`\n\n\n## usage\n\n```scala\nimport shapeless._\nimport shapeless.JavaRecordGeneric._\n\n// summon shapeless.Generic instances\nGeneric[YourJavaRecordType]\nGeneric[YourJavaSealedType]\n```\n\n### LabelledGeneric\n\n```scala\nimport shapeless._\nimport shapeless.JavaRecordGeneric._\nimport shapeless.JavaRecordGeneric.string._ // string label\n// or import shapeless.JavaRecordGeneric.symbol._\n\nLabelledGeneric[YourJavaRecordType]\nLabelledGeneric[YourJavaSealedType]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Fshapeless-java-records","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuwei-k%2Fshapeless-java-records","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Fshapeless-java-records/lists"}