{"id":40202303,"url":"https://github.com/stackgenhq/flatgraph-codegen-gradle","last_synced_at":"2026-01-19T20:32:43.844Z","repository":{"id":277268212,"uuid":"931618573","full_name":"stackgenhq/flatgraph-codegen-gradle","owner":"stackgenhq","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-13T02:28:11.000Z","size":66,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-13T03:25:40.257Z","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/stackgenhq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-12T15:25:40.000Z","updated_at":"2025-02-12T21:07:37.000Z","dependencies_parsed_at":"2025-02-13T03:35:50.577Z","dependency_job_id":null,"html_url":"https://github.com/stackgenhq/flatgraph-codegen-gradle","commit_stats":null,"previous_names":["stackgenhq/flatgraph-codegen-gradle"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stackgenhq/flatgraph-codegen-gradle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgenhq%2Fflatgraph-codegen-gradle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgenhq%2Fflatgraph-codegen-gradle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgenhq%2Fflatgraph-codegen-gradle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgenhq%2Fflatgraph-codegen-gradle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackgenhq","download_url":"https://codeload.github.com/stackgenhq/flatgraph-codegen-gradle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgenhq%2Fflatgraph-codegen-gradle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28583851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T19:46:29.903Z","status":"ssl_error","status_checked_at":"2026-01-19T19:45:54.560Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-19T20:32:43.768Z","updated_at":"2026-01-19T20:32:43.819Z","avatar_url":"https://github.com/stackgenhq.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flatgraph Codegen Gradle\n\nA Gradle version of the Flatgraph codegen sbt plugin\n\n## Usage\n\nConfigure the task in your `build.gradle.kts`, eg:\n```kotlin\ntasks.named\u003cGenerateDomainClassesTask\u003e(\"generateDomainClasses\") {\n    classWithSchema = \"CpgExtSchema$\"\n    fieldName = \"instance\"\n    outputDirectory = file(\"build/generated/flatgraph/main/scala\")\n}\n```\n\n...where your `src/main/scala` directory contains the `CpgExtSchema` object with the `instance` field containing any\ndesired schema extensions.\n```scala\nimport flatgraph.schema.SchemaBuilder\nimport flatgraph.schema.Property.ValueType\nimport io.shiftleft.codepropertygraph.schema.CpgSchema\n\nclass CpgExtSchema(builder: SchemaBuilder, cpgSchema: CpgSchema) {\n\n  // Add node types, edge types, and properties here\n\n  val myProperty = builder\n    .addProperty(name = \"MYPROPERTY\", valueType = ValueType.String)\n    .mandatory(\"\")\n\n  val myNodeType = builder\n    .addNodeType(\"MYNODETYPE\")\n    .addProperty(myProperty)\n\n}\n\nobject CpgExtSchema {\n  val builder   = new SchemaBuilder(domainShortName = \"Cpg\", basePackage = \"flatgraph.generated\")\n  val cpgSchema = new CpgSchema(builder)\n  val cpgExtSchema = new CpgExtSchema(builder, cpgSchema)\n  val instance     = builder.build\n}\n```\n\nSee also [example](example/build.gradle.kts)\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on contributing and our code of conduct.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgenhq%2Fflatgraph-codegen-gradle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackgenhq%2Fflatgraph-codegen-gradle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgenhq%2Fflatgraph-codegen-gradle/lists"}