{"id":36426607,"url":"https://github.com/jffiorillo/jvmbuilder","last_synced_at":"2026-01-11T18:01:11.067Z","repository":{"id":57733653,"uuid":"143868882","full_name":"jffiorillo/jvmbuilder","owner":"jffiorillo","description":"A source code generator for Kotlin data classes to automatically create a Builder class.","archived":false,"fork":false,"pushed_at":"2018-10-15T14:36:21.000Z","size":81,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-04T03:46:32.504Z","etag":null,"topics":["annotation-processor","java","kapt","kotlin","kotlin-android","kotlin-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jffiorillo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-07T12:17:20.000Z","updated_at":"2021-06-15T00:40:13.000Z","dependencies_parsed_at":"2022-08-24T07:20:34.283Z","dependency_job_id":null,"html_url":"https://github.com/jffiorillo/jvmbuilder","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/jffiorillo/jvmbuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jffiorillo%2Fjvmbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jffiorillo%2Fjvmbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jffiorillo%2Fjvmbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jffiorillo%2Fjvmbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jffiorillo","download_url":"https://codeload.github.com/jffiorillo/jvmbuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jffiorillo%2Fjvmbuilder/sbom","scorecard":{"id":517421,"data":{"date":"2025-08-11","repo":{"name":"github.com/jffiorillo/jvmbuilder","commit":"34fdb7031c56c295dc92459d0d83952c9e16282d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T02:11:27.104Z","repository_id":57733653,"created_at":"2025-08-20T02:11:27.104Z","updated_at":"2025-08-20T02:11:27.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28316895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["annotation-processor","java","kapt","kotlin","kotlin-android","kotlin-library"],"created_at":"2026-01-11T18:00:29.942Z","updated_at":"2026-01-11T18:01:11.037Z","avatar_url":"https://github.com/jffiorillo.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JvmBuilder\n[ ![Download](https://api.bintray.com/packages/jffiorillo/jvmbuilder/jvmbuilder/images/download.svg) ](https://bintray.com/jffiorillo/jvmbuilder/jvmbuilder/_latestVersion)\n\nA source code generator for [Kotlin](https://kotlinlang.org/) data classes to automatically create a Builder class. \n\n# How to use JvmBuilder\n\nWhen annotating a Kotlin `data class` with `@JvmBuilder` \n``` \n@JvmBuilder\ndata class Test(val foo: Int = 1, val bar: String)\n```\n\nThe following class is generated \n```\n// Code auto-generated by JvmBuilder. Do not edit.\npackage com.example\n\nimport kotlin.Int\nimport kotlin.String\n\nclass JvmBuilder_Test {\n    private var foo: Int? = null\n\n    private var bar: String? = null\n\n    fun foo(foo: Int): JvmBuilder_Test {\n        this.foo = foo\n        return this\n    }\n\n    fun bar(bar: String): JvmBuilder_Test {\n        this.bar = bar\n        return this\n    }\n\n    fun build(): Test {\n        var result = com.example.Test(bar = this.bar!!)\n        result = result.copy(foo = this.foo ?: result.foo)\n        return result\n    }\n}\n```\n\nThis provides a `Builder` class that can be used in Java to create your Kotlin `Test` `data class` using the default values and following a [`Builder Pattern`](https://en.wikipedia.org/wiki/Builder_pattern).\n\nThe following Java code generates a `Test` instance with `foo = 1` (taking the 1 from the default `Kotlin` constructor) and `bar = \"bar\"`.\n```\nnew Jvm_Builder().bar(\"bar\").build()\n```\n\n## Gradle\n\nGradle users should add the dependencies in their `build.gradle` file:\n\n```\ndependencies {\n  implementation \"io.github.jffiorillo:jvmbuilder-annotations:\u003clatest_version\u003e\"\n  kapt \"io.github.jffiorillo:jvmbuilder:\u003clatest_version\u003e\"\n}\n```\n\n## Maven\n\nMaven users should add the dependencies in their `pom.xml` file:\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.jffiorillo\u003c/groupId\u003e\n  \u003cartifactId\u003ejvmbuilder-annotations\u003c/artifactId\u003e\n  \u003cversion\u003e{latest_version}\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.jffiorillo\u003c/groupId\u003e\n  \u003cartifactId\u003ejvmbuilder\u003c/artifactId\u003e\n  \u003cversion\u003e{latest_version}\u003c/version\u003e\n  \u003cscope\u003eprovided\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n\n## Benefit \n\n  * In order to have a good Kotlin interoperability with [Java](https://en.wikipedia.org/wiki/Java_(programming_language)), you can use \n  this tool to generate automatically generate Builders for your data classes that are accessible from Java consumers.\n  * The time of executing the annotation processor is really slow because uses the [kotlin-metadata](https://github.com/Takhion/kotlin-metadata) instead of reflection.\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjffiorillo%2Fjvmbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjffiorillo%2Fjvmbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjffiorillo%2Fjvmbuilder/lists"}