{"id":15530625,"url":"https://github.com/groovymc/enhancedgroovy","last_synced_at":"2025-09-04T13:43:47.745Z","repository":{"id":113544695,"uuid":"530278833","full_name":"GroovyMC/EnhancedGroovy","owner":"GroovyMC","description":"An IntelliJ IDEA plugin for enhanced Groovy support","archived":false,"fork":false,"pushed_at":"2022-09-11T14:23:09.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T05:14:21.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/GroovyMC.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}},"created_at":"2022-08-29T15:25:37.000Z","updated_at":"2024-02-05T14:47:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1828eb6-3969-422f-b4b5-79e71f2208e4","html_url":"https://github.com/GroovyMC/EnhancedGroovy","commit_stats":null,"previous_names":["groovymc/enhancedgroovy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GroovyMC/EnhancedGroovy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GroovyMC%2FEnhancedGroovy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GroovyMC%2FEnhancedGroovy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GroovyMC%2FEnhancedGroovy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GroovyMC%2FEnhancedGroovy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GroovyMC","download_url":"https://codeload.github.com/GroovyMC/EnhancedGroovy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GroovyMC%2FEnhancedGroovy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273619131,"owners_count":25138235,"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-09-04T02:00:08.968Z","response_time":61,"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":[],"created_at":"2024-10-02T11:23:25.901Z","updated_at":"2025-09-04T13:43:47.707Z","avatar_url":"https://github.com/GroovyMC.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Version](https://img.shields.io/jetbrains/plugin/v/com.matyrobbrt.enhancedgroovy)\n![Downloads](https://img.shields.io/jetbrains/plugin/d/com.matyrobbrt.enhancedgroovy)\n\n# EnhancedGroovy\nEnhancedGroovy is an IntelliJ plugin which allows Groovy annotations to add their fields to your IDE.\n## Dev usage\nFirst, add the DSL as a compileOnly dependency to the project adding the annotations and their transformer:\n```groovy\nrepositories {\n    maven { url = 'https://maven.moddinginquisition.org/releases' }\n}\ndependencies {\n    compileOnly \"com.matyrobbrt.enhancedgroovy:dsl:$dslVersion\" // Each plugin version has its own dsl version with the same ID\n}\n```\nNow, in order to add support for annotations, in your `resources` folder create a GroovyScript named `enhancedgroovy/_${annotationName}.groovy`,\nwhere `annotationName` is the name of the annotation you're adding support to.  \nExample: given the annotation `testing.MyAnnotation`, the configuration script will be in `enhancedgroovy/_testing.MyAnnotation.groovy`.  \nYou can ignore the package warning, adding this at the top of your script:\n```groovy\n//file:noinspection GrPackage\n```\nWhen found, the plugin will execute your script, by giving it the `transformer` as a `com.matyrobbrt.enhancedgroovy.dsl.ClassTransformer` and\nthe `annotation` in question as a `com.matyrobbrt.enhancedgroovy.dsl.members.Annotation`. Those properties can be accessed using the `this.\u003cpropertyName\u003e`\nsyntax, and for better IDE support you may uselessly cast them to their respective types.  \nThe example below will add a `private final java.lang.String testingField` field when applied to a class:\n```groovy\nimport com.matyrobbrt.enhancedgroovy.dsl.ClassTransformer\n\nfinal transformer = ((ClassTransformer) this.transformer)\n\ntransformer.addField([\n        'name': 'testingField',\n        'type': 'java.lang.String',\n        'modifiers': ['private', 'final']\n])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroovymc%2Fenhancedgroovy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroovymc%2Fenhancedgroovy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroovymc%2Fenhancedgroovy/lists"}