{"id":19623489,"url":"https://github.com/jbock-java/dapper","last_synced_at":"2025-04-28T04:31:53.293Z","repository":{"id":57733619,"uuid":"414897885","full_name":"jbock-java/dapper","owner":"jbock-java","description":"modular dagger","archived":false,"fork":false,"pushed_at":"2022-08-07T10:10:45.000Z","size":3365,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T06:31:45.898Z","etag":null,"topics":["dagger","dagger2","dependency-injection","java","jpms"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbock-java.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-08T07:59:51.000Z","updated_at":"2023-08-10T14:52:06.000Z","dependencies_parsed_at":"2022-08-24T11:20:06.868Z","dependency_job_id":null,"html_url":"https://github.com/jbock-java/dapper","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbock-java%2Fdapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbock-java%2Fdapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbock-java%2Fdapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbock-java%2Fdapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbock-java","download_url":"https://codeload.github.com/jbock-java/dapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251252213,"owners_count":21559749,"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":["dagger","dagger2","dependency-injection","java","jpms"],"created_at":"2024-11-11T11:34:06.886Z","updated_at":"2025-04-28T04:31:52.707Z","avatar_url":"https://github.com/jbock-java.png","language":"Java","readme":"[![dapper-compiler](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/dapper-compiler/badge.svg?color=grey\u0026subject=dapper-compiler)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/dapper-compiler)\n[![dapper](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/dapper/badge.svg?subject=dapper)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/dapper)\n\nDapper is a fork of [dagger2](https://github.com/google/dagger),\nwith some modifications:\n\n* gradle project with JUnit 5 tests\n* full jpms support with module-name: `dagger`\n* removed the producers extension and all producers annotations like `@ProductionComponent`\n* remove kotlin special-casing and the dependency on `xprocessing`\n* remove gwt special-casing and guava special casing, like support for `c.g.c.b.Optional`\n* remove internal guava dependency\n* remove the `experimental_turbine_hjar` compiler option\n\nDapper uses `jakarta.inject` annotations and ignores their `javax.inject` counterparts.\nExisting dagger projects can use the following script to replace the imports:\n\n```bash\nfor F in `find src/main/java -name \"*.java\"`; do\n  for N in Singleton Scope Inject Qualifier Provider; do\n    sed -i .bak \"s/^import javax.inject.$N;$/import jakarta.inject.$N;/\" $F\n  done\n  rm ${F}.bak\ndone\n```\n\nIf you have a modular java build, add this to `module-info.java`:\n\n```java\nrequires dagger;\n```\n\nThe gradle config is as follows:\n\n```groovy\nimplementation('io.github.jbock-java:dapper:2.41.2')\nannotationProcessor('io.github.jbock-java:dapper-compiler:2.41.2')\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbock-java%2Fdapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbock-java%2Fdapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbock-java%2Fdapper/lists"}