{"id":21409693,"url":"https://github.com/edgar-code-repository/avro-library-generator","last_synced_at":"2026-01-02T08:51:46.480Z","repository":{"id":150026251,"uuid":"594304119","full_name":"edgar-code-repository/avro-library-generator","owner":"edgar-code-repository","description":"Generating a Jar file from an Avro schema.","archived":false,"fork":false,"pushed_at":"2023-02-03T20:27:46.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T04:29:34.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgar-code-repository.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-01-28T05:36:32.000Z","updated_at":"2023-09-13T12:08:48.000Z","dependencies_parsed_at":"2023-04-12T20:24:30.885Z","dependency_job_id":null,"html_url":"https://github.com/edgar-code-repository/avro-library-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Favro-library-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Favro-library-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Favro-library-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Favro-library-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgar-code-repository","download_url":"https://codeload.github.com/edgar-code-repository/avro-library-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910444,"owners_count":20367537,"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","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":[],"created_at":"2024-11-22T17:28:12.468Z","updated_at":"2026-01-02T08:51:46.446Z","avatar_url":"https://github.com/edgar-code-repository.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"AVRO LIBRARY GENERATOR\n-----------------------------------------------------------------\n\nApplication that generates a Jar file from an Avro schema.\n\nThe JAR file generated will be used by consumers/producers \nto serialize/deserialize Avro messages from Kafka.\n\n-----------------------------------------------------------------\n\nAn Avro schema was generated in this project:\n\nhttps://github.com/edgar-code-repository/avro-schema-generator\n\n``` \n    {\n      \"type\" : \"record\",\n      \"name\" : \"AvroMessageDTO\",\n      \"namespace\" : \"com.domain.example.dto\",\n      \"fields\" : [\n        { \"name\" : \"code\", \"type\" : \"int\" },\n        { \"name\" : \"message\",  \"type\" : \"string\" },\n        { \"name\" : \"description\", \"type\" : [ \"null\", \"string\" ], \"default\" : null }\n      ]\n    }\n```\n\n-----------------------------------------------------------------\n\nIn order to generate the Jar, a plugin and \na dependency are needed in the build.gradle file.\n\nPlugins:\n\n```\nid \"com.commercehub.gradle.plugin.avro\" version \"0.9.0\"\n```\n\nDependencies:\n```\ncompile \"org.apache.avro:avro:1.8.2\"\n```\n\nThe plugin searches for Avro schemas in folders named \"avro\" in\nevery source set.\n\nIn this case the schema file is located in the directory src/main/avro.\n\n-----------------------------------------------------------------\n\nWhen the build gradle task is executed, the Jar file \nappears in the build/libs directory:\n\n![JAR](screenshots/avro-library-generator.png)\n\n\n-----------------------------------------------------------------","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgar-code-repository%2Favro-library-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgar-code-repository%2Favro-library-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgar-code-repository%2Favro-library-generator/lists"}