{"id":15044732,"url":"https://github.com/greenhalos/j2asyncapi","last_synced_at":"2025-09-19T10:27:37.204Z","repository":{"id":38326236,"uuid":"452819266","full_name":"greenhalos/j2asyncapi","owner":"greenhalos","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-07T16:22:55.000Z","size":222,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-07T18:24:09.783Z","etag":null,"topics":["asyncapi","asyncapi-tooling","asyncapi-tools","java","java11"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenhalos.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-27T19:38:02.000Z","updated_at":"2022-02-19T09:02:31.000Z","dependencies_parsed_at":"2023-01-21T01:16:57.314Z","dependency_job_id":"9b9e71dc-0337-421e-8483-37b40d00ffc5","html_url":"https://github.com/greenhalos/j2asyncapi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/greenhalos/j2asyncapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenhalos%2Fj2asyncapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenhalos%2Fj2asyncapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenhalos%2Fj2asyncapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenhalos%2Fj2asyncapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenhalos","download_url":"https://codeload.github.com/greenhalos/j2asyncapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenhalos%2Fj2asyncapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269385800,"owners_count":24408433,"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-08-08T02:00:09.200Z","response_time":72,"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":["asyncapi","asyncapi-tooling","asyncapi-tools","java","java11"],"created_at":"2024-09-24T20:50:57.836Z","updated_at":"2025-09-19T10:27:32.166Z","avatar_url":"https://github.com/greenhalos.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# j2asyncapi\n\nA lib which helps you generate `asyncapi.yaml` from your Java code based on annotations.\n\n## How to use\n\n1. Include the dependencies in your `pom.xml`\n\n```xml\n\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003elu.greenhalos\u003c/groupId\u003e\n        \u003cartifactId\u003ej2asyncapi-annotation\u003c/artifactId\u003e\n        \u003cversion\u003e${j2asyncapi.version}\u003c/version\u003e\n    \u003c/dependency\u003e\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003elu.greenhalos\u003c/groupId\u003e\n        \u003cartifactId\u003ej2asyncapi-processor\u003c/artifactId\u003e\n        \u003cversion\u003e${j2asyncapi.version}\u003c/version\u003e\n        \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n2. Copy [this test](./j2asyncapi-example/src/test/java/lu/greenhalos/j2asyncapi/example/AsyncApiGeneratorTest.java)\n   from this Repository to your code base\n3. Change `ExampleBaseApplication.class` with a valid base class of yours e.g. your SpringBootApplication class with the\n   main method.\n4. Change the constant `DOCS_TARGET` to your needs.\n5. Annotate a method which is a publisher e.g. a methode which is already annotated with `@RabbitListener` with the\n   j2asyncapi annotation `@AsyncApi`:\n```java\nclass Listener {\n\n    @AsyncApi(\n            type = LISTENER, exchange = \"exchange\", routingKey = \"routing.key\", payload = ExampleListenerMessage.class,\n            description = \"Description explaining exactly what happens here\"\n    )\n    @RabbitListener(queues = \"${some.long.path.to.the.queue.name}\")\n    public void on(Message message) {\n        // do your stuff\n    }\n}\n```\n6. Run the copied test. The resulting asyncapi.yml is generated to your `DOCS_TARGET`.\n\n## How to build\n\n🥁 it is a simple a running:\n```shell\n./mvnw clean verify # or install in case you want to publish it to you local .m2 repository\n```\n\n# TODOS\n\n* @JsonIgnore\n* process java.util.Locale\n* Statistics about schemas\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenhalos%2Fj2asyncapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenhalos%2Fj2asyncapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenhalos%2Fj2asyncapi/lists"}