{"id":35012206,"url":"https://github.com/forax/einherjar","last_synced_at":"2025-12-27T05:00:22.385Z","repository":{"id":231598791,"uuid":"776182861","full_name":"forax/einherjar","owner":"forax","description":"A Java tool that transforms a Java jar to an Einherjar to go to Valhalla","archived":false,"fork":false,"pushed_at":"2024-04-13T13:48:50.000Z","size":43,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T04:10:20.672Z","etag":null,"topics":["einherjar","java","tool","valhalla","value-type"],"latest_commit_sha":null,"homepage":"","language":"Java","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/forax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-22T21:10:49.000Z","updated_at":"2024-04-12T11:10:36.000Z","dependencies_parsed_at":"2024-04-13T15:12:04.191Z","dependency_job_id":"62a326d4-868e-41cf-b4d5-1f520c51d50d","html_url":"https://github.com/forax/einherjar","commit_stats":null,"previous_names":["forax/einherjar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/forax/einherjar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forax%2Feinherjar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forax%2Feinherjar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forax%2Feinherjar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forax%2Feinherjar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forax","download_url":"https://codeload.github.com/forax/einherjar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forax%2Feinherjar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28072675,"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-12-27T02:00:05.897Z","response_time":58,"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":["einherjar","java","tool","valhalla","value-type"],"created_at":"2025-12-27T05:00:06.261Z","updated_at":"2025-12-27T05:00:22.379Z","avatar_url":"https://github.com/forax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# einherjar\nA Java tool that transforms a Java jar to an [Einherjar](https://en.wikipedia.org/wiki/Einherjar) to go to Valhalla.\n\neinherjar is a simple Java tool that takes a jar with classes annotated with the annotation\n[@ValueType](src/main/java/com/github/forax/einherjar/api/ValueType.java) (or your own annotation),\nchecks that the annotated classes can be value classes and generate an Einherjar.\n\nAn Einherjar, the generated jar, is a Multi-Release jar that\n- run as usual with any VM able to run the input jar,\n- run the annotated classes seen as value classes with a Valhalla enabled VM (and '--enable-preview').\n\n### To build einherjar, use maven\nWith any Java 21+ distribution.\n\n```bash\n  mvn package\n```\n\ngenerates a file named `einherjar.jar` in `target`.\n\n### To run einherjar\nWith any Java 8+ distribution.\n\nRunning einherjar with no action, prints the help\n```bash\n  java -jar target/einherjar.jar\n```\n\neinherjar provides several actions:\n- `find` that helps you find the potential value classes,\n- `check` that verifies that the annotated classes can be transformed to value classes,\n- `enhance` that generates the Einherjar.\n\nand several options:\n- `--annotation name` to set the name of the annotation (e.g. com.github.forax.einherjar.api.ValueType)\n- `--classes names` to set the name of classes to be checked/enhanced (e.g. com.acme.Foo,com.acme.Bar)\n- `--output path` to set the name of the generated Einherjar\n- `--version version` to set the classfile version of the generated value classes (always in preview)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforax%2Feinherjar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforax%2Feinherjar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforax%2Feinherjar/lists"}