{"id":31840180,"url":"https://github.com/rtakland/interopshield","last_synced_at":"2025-10-25T18:45:37.296Z","repository":{"id":315472588,"uuid":"1059639142","full_name":"RTAkland/InteropShield","owner":"RTAkland","description":"Auto generate java getter/setter for kotlin extension property | 自动为Kotlin拓展函数生成Java getter/setter","archived":false,"fork":false,"pushed_at":"2025-10-05T13:04:13.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T15:07:04.282Z","etag":null,"topics":["auto-generator","compiler","compiler-plugin","kcp","kotlin","plugin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/RTAkland.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-18T18:10:39.000Z","updated_at":"2025-10-05T13:04:01.000Z","dependencies_parsed_at":"2025-09-18T21:39:45.740Z","dependency_job_id":"b0b939d2-2169-495f-a00d-eda686698d5c","html_url":"https://github.com/RTAkland/InteropShield","commit_stats":null,"previous_names":["rtakland/interopshield"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/RTAkland/InteropShield","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FInteropShield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FInteropShield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FInteropShield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FInteropShield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RTAkland","download_url":"https://codeload.github.com/RTAkland/InteropShield/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FInteropShield/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010321,"owners_count":26084721,"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-10-12T02:00:06.719Z","response_time":53,"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":["auto-generator","compiler","compiler-plugin","kcp","kotlin","plugin"],"created_at":"2025-10-12T04:54:15.877Z","updated_at":"2025-10-12T04:54:20.942Z","avatar_url":"https://github.com/RTAkland.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InteropShield\n\nA Kotlin Compiler Plugin that can auto generate Java member getter/setter for kotlin extension property.\n\n| Limitation                 | Is supported | Description/Addition info                                                                                                                  |\n|----------------------------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| Annotation Class           | ❌            | Annotation class has no body                                                                                                               |\n| Getter                     | ✅            | None                                                                                                                                       |\n| Setter                     | ⚠️           | Not tested fully                                                                                                                           |\n| Getter/Setter with generic | ⚠️           | The Type Erasure in JVM, all generic type will be erased to `Object` \u003cbr/\u003e Please avoid using generic in extension property getter/setter. |\n\n\u003e The minimum Kotlin version supported by the plugin is `2.2.10`\n\n# How to use\n\n1. Add the maven repository of RTAST both `build.gradle.kts` and `settings.gradle.kts`\n\n```kotlin\n// build.gradle.kts\nrepositories {\n    mavenCentral()\n    maven(\"https://repo.maven.rtast.cn/releases\")\n}\n\n// settings.gradle.kts\npluginManagement {\n    repositories {\n        mavenLocal()\n        gradlePluginPortal()\n        mavenCentral()\n        maven(\"https://repo.maven.rtast.cn/releases\")\n    }\n}\n```\n\n2. Add the plugin to gradle\n\n```kotlin\n// build.gradle.kts\nplugins {\n    id(\"cn.rtast.interop\") version \"\u003cplugin version\u003e\"\n}\n```\n\n3. Configuring the plugin(Optional)\n\n```kotlin\n// build.gradle.kts\n\ninteropShield {\n    // Whether to enable the plugin, by default, it's true\n    enabled = true\n\n    // Suppressing the warning, by default, it's false\n    suppressWarning = false\n}\n```\n\n# 中文文档\n\n一个自动为Kotlin的拓展属性生成Java成员getter/setter的Kotlin编译器插件\n\n| 限制                 | 是否支持 | 附加信息                                           |\n|--------------------|------|------------------------------------------------|\n| 注解类                | ❌    | 注解类内不允许有函数体                                    |\n| Getter             | ✅    | ***无***                                        |\n| Setter             | ⚠️   | 没有完全测试                                         |\n| 带有泛型的Getter/Setter | ⚠️   | 编译时会将泛型类型擦除变为`Object`, 请避免使用带有泛型的getter/setter |\n\n\u003e 插件开始支持的最小Kotlin版本为 `2.2.10`\n\n# 如何使用\n\n1. 在 `build.gradle.kts` 和 `settings.gradle.kts` 中添加如下maven仓库配置\n\n```kotlin\n// build.gradle.kts\nrepositories {\n    mavenCentral()\n    maven(\"https://repo.maven.rtast.cn/releases\")\n}\n\n// settings.gradle.kts\npluginManagement {\n    repositories {\n        mavenLocal()\n        gradlePluginPortal()\n        mavenCentral()\n        maven(\"https://repo.maven.rtast.cn/releases\")\n    }\n}\n```\n\n2. 将插件添加到gradle内\n\n```kotlin\n// build.gradle.kts\nplugins {\n    id(\"cn.rtast.interop\") version \"\u003cplugin version\u003e\"\n}\n```\n\n3. 配置插件(可选)\n\n```kotlin\n// build.gradle.kts\n\ninteropShield {\n    // 是否启用插件, 默认为true\n    enabled = true\n\n    // 是否抑制警告, 默认为false\n    suppressWarning = false\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtakland%2Finteropshield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtakland%2Finteropshield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtakland%2Finteropshield/lists"}