{"id":28391654,"url":"https://github.com/shikasd/kotlin-object-serialization-fix","last_synced_at":"2025-06-25T21:30:52.958Z","repository":{"id":46060375,"uuid":"228938977","full_name":"ShikaSD/kotlin-object-serialization-fix","owner":"ShikaSD","description":"Java serialization fix for Kotlin object","archived":false,"fork":false,"pushed_at":"2025-01-11T13:52:24.000Z","size":136,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T20:12:10.672Z","etag":null,"topics":["compiler-plugin","java-serialization","kotlin","object","serializable"],"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/ShikaSD.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}},"created_at":"2019-12-18T23:35:22.000Z","updated_at":"2025-01-11T13:52:24.000Z","dependencies_parsed_at":"2023-02-01T09:30:41.391Z","dependency_job_id":null,"html_url":"https://github.com/ShikaSD/kotlin-object-serialization-fix","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ShikaSD/kotlin-object-serialization-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShikaSD%2Fkotlin-object-serialization-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShikaSD%2Fkotlin-object-serialization-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShikaSD%2Fkotlin-object-serialization-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShikaSD%2Fkotlin-object-serialization-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShikaSD","download_url":"https://codeload.github.com/ShikaSD/kotlin-object-serialization-fix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShikaSD%2Fkotlin-object-serialization-fix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261955784,"owners_count":23235947,"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":["compiler-plugin","java-serialization","kotlin","object","serializable"],"created_at":"2025-05-31T09:42:55.521Z","updated_at":"2025-06-25T21:30:52.952Z","avatar_url":"https://github.com/ShikaSD.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java serialization fix for Kotlin object\n\nSolves the problem of Kotlin object being having different instance after deserialization using built-in Java serialization.\nThe issue is described quite well [here](https://blog.stylingandroid.com/kotlin-serializable-objects/).\n\nThe plugin adds `readResolve` method for every object which either:\n - implements `java.io.Serializable`;\n - extends a class implementing `java.io.Serializable`.\n\n## Getting it:\n\n```groovy\n// build.gradle\n\n// plugins dsl\nplugins {\n  id \"me.shika.kotlin-object-java-serialization\" version \"1.5.1\"\n}\n\n// or else\nbuildscript {\n  repositories {\n    maven {\n      url \"https://plugins.gradle.org/m2/\"\n    }\n  }\n  dependencies {\n    classpath \"me.shika:kotlin-object-java-serialization:1.5.1\"\n  }\n}\n\napply plugin: 'me.shika.kotlin-object-java-serialization'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshikasd%2Fkotlin-object-serialization-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshikasd%2Fkotlin-object-serialization-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshikasd%2Fkotlin-object-serialization-fix/lists"}