{"id":29283316,"url":"https://github.com/spongepowered/event-impl-gen","last_synced_at":"2025-07-22T08:31:21.293Z","repository":{"id":45818755,"uuid":"41605055","full_name":"SpongePowered/event-impl-gen","owner":"SpongePowered","description":"Used for generating SpongeEventFactory in SpongeAPI","archived":false,"fork":false,"pushed_at":"2024-12-31T19:24:40.000Z","size":712,"stargazers_count":5,"open_issues_count":4,"forks_count":5,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-07-05T19:33:29.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SpongePowered.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},"funding":{"patreon":"Sponge"}},"created_at":"2015-08-29T19:37:31.000Z","updated_at":"2024-12-31T19:24:43.000Z","dependencies_parsed_at":"2024-06-14T06:24:17.350Z","dependency_job_id":"1f57d326-2401-45fc-98d3-aba29ed55eb5","html_url":"https://github.com/SpongePowered/event-impl-gen","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/SpongePowered/event-impl-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongePowered%2Fevent-impl-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongePowered%2Fevent-impl-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongePowered%2Fevent-impl-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongePowered%2Fevent-impl-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpongePowered","download_url":"https://codeload.github.com/SpongePowered/event-impl-gen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongePowered%2Fevent-impl-gen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266456245,"owners_count":23931383,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2025-07-05T19:18:08.142Z","updated_at":"2025-07-22T08:31:21.284Z","avatar_url":"https://github.com/SpongePowered.png","language":"Java","funding_links":["https://patreon.com/Sponge"],"categories":[],"sub_categories":[],"readme":"# Event Implementation Generator\n\nGenerates the event implementations and factory for SpongeAPI based on event\ntemplates formatted as Java interfaces using an annotation processor. This tool should be compatible with all standard-compliant Java 8+ compilers.\n\n## Usage\nYou can use `event-impl-gen` in your plugins to generate event implementations based on event interfaces. `event-impl-gen` is primarily tested on \nGradle 7.2+, but should work on any Java build tool.\n\n### Gradle\nTo use it in your plugin, you need to apply it to your Gradle build script:\n\n**CAUTION**: Due to a bug in Gradle annotation processing, Gradle 7.2 or newer is required to take advantage of incremental compilation.\n\n```gradle\ndependencies {\n    annotationProcessor(\"org.spongepowered:event-impl-gen:8.0.0-SNAPSHOT\")\n    compileOnlyApi(\"org.spongepowered:event-impl-gen-annotations:8.0.0-SNAPSHOT\")\n}\n\ncompileJava {\n    options.compilerArgs \u003c\u003c [\"-AeventGenFactory=com.example.myplugin.event.factory.MyPluginEventFactory\"]\n    \n    // Then annotate all packages or interfaces containing events with @GenerateFactoryMethod\n}\n```\n\n### IDE Integration\n\n**IntelliJ**: Projects built in IntelliJ will need to be compiled once for annotation processor-generated interfaces to show up.\n\n**Eclipse**: Because Eclipse compiles continuously, event implementations are generated immediately. When using Gradle, a bit of plumbing is \nrequired to ensure annotation processors are automatically detected. See the \n\n\n### Options\n\nBeyond the one required `eventGenFactory` option to declare the location of the generated event factory, there are several other options to \ncontrol the output:\n\n| Option | Description | Format | Required | Default Value |\n|------- | ----------- | ------ | -------- | ------------- |\n| `eventGenFactory` | The package to put the generated factory in | qualified binary name | *yes* | *none* |\n| `sortPriorityPrefix` | prefix for methods that should be placed first when sotring | string | *no* | `original` |\n| `groupingPrefixes` | appears to modify sorting to group certain prefixes together | `\u003ca\u003e:\u003cb\u003e[,\u003ca\u003e:\u003cb\u003e]*` | *no* | `from:to` |\n| `inclusiveAnnotations` | customize the annotations that include an event type  in processing | binary name of an annotation | *no* | `o.s.a.u.a.e.GenerateFactoryMethod` |\n| `exclusiveAnnotations` | customize the annotations that exclude an event type from processing | binary name of an annotation | *no* | `o.s.a.u.a.e.GenerateFactoryMethod` |\n| `eventGenDebug` | print extra debug output | boolean | *no* | `false` |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspongepowered%2Fevent-impl-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspongepowered%2Fevent-impl-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspongepowered%2Fevent-impl-gen/lists"}