{"id":27734538,"url":"https://github.com/anod/ksp-dotenv","last_synced_at":"2026-04-30T06:33:07.104Z","repository":{"id":187731464,"uuid":"677383792","full_name":"anod/ksp-dotenv","owner":"anod","description":"Gradle multiplatform KSP plugin to generate code from .env file","archived":false,"fork":false,"pushed_at":"2023-08-12T09:09:32.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T22:06:51.149Z","etag":null,"topics":["gradle","kotlin-ksp","kotlin-multiplatform"],"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/anod.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,"zenodo":null}},"created_at":"2023-08-11T12:43:01.000Z","updated_at":"2023-08-12T09:08:17.000Z","dependencies_parsed_at":"2025-04-28T13:12:50.674Z","dependency_job_id":"081fc41c-2482-4118-9a57-d176bbb70a14","html_url":"https://github.com/anod/ksp-dotenv","commit_stats":null,"previous_names":["anod/ksp-dotenv"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anod/ksp-dotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fksp-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fksp-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fksp-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fksp-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anod","download_url":"https://codeload.github.com/anod/ksp-dotenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anod%2Fksp-dotenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["gradle","kotlin-ksp","kotlin-multiplatform"],"created_at":"2025-04-28T13:12:42.939Z","updated_at":"2026-04-30T06:33:07.086Z","avatar_url":"https://github.com/anod.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ksp-dotenv\nGradle KSP Multiplatform plugin to generate code from .env file\n\n# Example\n\n`./gradlew example:run`\n\n# Setup\n\n1. Include [com.google.devtools.ksp](https://kotlinlang.org/docs/ksp-quickstart.html) in case it wasn't in the project yet\n2. Add GitHup package repository following instructions https://github.com/anod/ksp-dotenv/packages/1921207\n3. Add dependencies to build.gradle.kts\n    ```kotlin\n    dependencies {\n        add(\"kspCommonMainMetadata\", \"info.anodsplace.dotenv:ksp-dotenv-jvm:$kspDotenvVersion\")\n        add(\"kspJvm\", project(\"info.anodsplace.dotenv:ksp-dotenv-jvm:$kspDotenvVersion\"))\n    }\n    ```\n4. Configure the plugin inside  build.gradle.kts\n   ````\n    ksp {\n        arg(\"info.anodsplace.dotenv.path\", project.rootDir.toString())\n        arg(\"info.anodsplace.dotenv.filename\", \"env.example\") // default \".env\"\n        arg(\"info.anodsplace.dotenv.allowedKeys\", \"ENDPOINT*;ENV\") // list separated by ';', supports '*','?' pattern\n        arg(\"info.anodsplace.dotenv.camelCase\", \"true\")\n        arg(\"info.anodsplace.dotenv.package\", \"info.anodsplace.dotenv.generated\")\n        arg(\"info.anodsplace.dotenv.class\", \"DotEnvExample\")\n    }\n    ```\n5. Build \u0026 use generated file\n   ```kotlin\n    println(\"[ksp-dotenv]   ENDPOINT_FE=${DotEnvExample.endpointFe}\")\n    println(\"[ksp-dotenv]   ENDPOINT_BE=${DotEnvExample.endpointBe}\")\n    println(\"[ksp-dotenv]   ENV=${DotEnvExample.env}\")\n   ```\n   \n# Publish\n\n   `./gradlew publish`\n\n# Author\n\nAlexandr Gavrishev, 2023\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanod%2Fksp-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanod%2Fksp-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanod%2Fksp-dotenv/lists"}