{"id":50718415,"url":"https://github.com/overpas/default-impl","last_synced_at":"2026-06-09T21:03:25.154Z","repository":{"id":190397455,"uuid":"682537742","full_name":"overpas/default-impl","owner":"overpas","description":"A Kotlin Symbol Processing tool generating default interface implementation constructor functions","archived":false,"fork":false,"pushed_at":"2026-05-13T20:01:46.000Z","size":248,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-13T22:06:12.608Z","etag":null,"topics":["kotlin","kotlin-multiplatform","ksp"],"latest_commit_sha":null,"homepage":"","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/overpas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-08-24T11:41:15.000Z","updated_at":"2024-10-05T16:39:06.000Z","dependencies_parsed_at":"2026-05-13T22:03:07.511Z","dependency_job_id":null,"html_url":"https://github.com/overpas/default-impl","commit_stats":null,"previous_names":["overpas/default-impl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/overpas/default-impl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overpas%2Fdefault-impl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overpas%2Fdefault-impl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overpas%2Fdefault-impl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overpas%2Fdefault-impl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/overpas","download_url":"https://codeload.github.com/overpas/default-impl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overpas%2Fdefault-impl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34125332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["kotlin","kotlin-multiplatform","ksp"],"created_at":"2026-06-09T21:03:23.997Z","updated_at":"2026-06-09T21:03:25.147Z","avatar_url":"https://github.com/overpas.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# default-impl\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.overpas/default-impl-processor/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.overpas/default-impl-processor)\n[![CI](https://github.com/overpas/default-impl/actions/workflows/ci.yml/badge.svg)](https://github.com/overpas/default-impl/actions/workflows/ci.yml)\n![Badge-Android](https://img.shields.io/badge/platform-android-blue)\n![Badge-JVM](https://img.shields.io/badge/platform-jvm-blue)\n![Badge-iOS](https://img.shields.io/badge/platform-ios-blue)\n![Badge-watchOS](https://img.shields.io/badge/platform-watchos-blue)\n![Badge-macOS](https://img.shields.io/badge/platform-macos-blue)\n![Badge-tvOS](https://img.shields.io/badge/platform-tvos-blue)\n![Badge-mingw](https://img.shields.io/badge/platform-mingw-blue)\n![Badge-linux](https://img.shields.io/badge/platform-linux-blue)\n\nA Kotlin Symbol Processing tool generating default interface implementation constructor functions\n\n```kotlin\n@DefaultImpl(MyInterfaceImpl::class)\ninterface MyInterface\n\ninternal object MyInterfaceImpl\n\nval obj = MyInterface() // this will be generated with all constructor parameters\n```\n\n## Usage\n#### In Kotlin Multiplatform projects\nIn your `build.gradle.kts`:\n\n```gradle\nplugins {\n    // ...\n    id(\"com.google.devtools.ksp\")\n}\n\nkotlin {\n    // ...\n    sourceSets {\n        val commonMain by getting {\n            kotlin.srcDir(\"build/generated/ksp/metadata/commonMain/kotlin\") // optional: if you want to generate the code in commonMain\n            dependencies {\n                implementation(\"io.github.overpas:default-impl-annotations:0.0.2\")\n            }\n        }\n        // ...\n    }\n}\n\ndependencies {\n    add(\"kspCommonMainMetadata\", \"io.github.overpas:default-impl-processor:0.0.2\")\n    // other configurations (don't include any if you want to generate the code in commonMain):\n    // add(\"kspJvm\", \"io.github.overpas:default-impl-processor:0.0.2\")\n    // add(\"kspAndroid\", \"io.github.overpas:default-impl-processor:0.0.2\")\n    // add(\"kspIosArm64\", \"io.github.overpas:default-impl-processor:0.0.2\")\n    // etc.\n}\n\n// optional: if you want to generate the code in commonMain\ntasks.withType\u003corg.jetbrains.kotlin.gradle.dsl.KotlinCompile\u003c*\u003e\u003e().configureEach {\n    if (name != \"kspCommonMainKotlinMetadata\") {\n        dependsOn(\"kspCommonMainKotlinMetadata\")\n    }\n}\n```\n#### In plain Kotlin projects\nIn your `build.gradle.kts`\n\n```gradle\nplugins {\n    // ...\n    id(\"com.google.devtools.ksp\")\n}\n\ndependencies {\n    implementation(\"io.github.overpas:default-impl-annotations:0.0.2\")\n    ksp(\"io.github.overpas:default-impl-processor:0.0.2\")\n}\n```\n\n## Troubleshooting\nIf you are using Detekt and `detektMetadataMain` fails with `Reason: Task ':detektMetadataMain' uses this output of task ':kspCommonMainKotlinMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.\n` you might consider adding:\n```gradle\ntasks.matching { it.name == \"detektMetadataMain\" }\n    .configureEach {\n        dependsOn(tasks.matching { it.name == \"kspCommonMainKotlinMetadata\" })\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foverpas%2Fdefault-impl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foverpas%2Fdefault-impl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foverpas%2Fdefault-impl/lists"}