{"id":40728170,"url":"https://github.com/joke/spring-factory","last_synced_at":"2026-01-21T14:11:56.278Z","repository":{"id":37930965,"uuid":"291520247","full_name":"joke/spring-factory","owner":"joke","description":"Annotation processor for spring factories META-INF/spring.factories","archived":false,"fork":false,"pushed_at":"2026-01-12T21:57:22.000Z","size":286,"stargazers_count":6,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-13T01:57:40.547Z","etag":null,"topics":["annotation-processor","java","spring-boot"],"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/joke.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":"CONTRIBUTING.adoc","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-30T17:38:57.000Z","updated_at":"2025-11-07T18:16:14.000Z","dependencies_parsed_at":"2023-11-20T22:24:11.372Z","dependency_job_id":"2eade882-f4d1-4f43-96b4-44dd03dccaf0","html_url":"https://github.com/joke/spring-factory","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joke/spring-factory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspring-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspring-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspring-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspring-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joke","download_url":"https://codeload.github.com/joke/spring-factory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joke%2Fspring-factory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28634791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","spring-boot"],"created_at":"2026-01-21T14:11:56.213Z","updated_at":"2026-01-21T14:11:56.266Z","avatar_url":"https://github.com/joke.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= `spring-factory`\n\n:icons: font\n\nimage:https://badgen.net/github/license/joke/spring-factory[]\nimage:https://github.com/joke/spring-factory/workflows/build/badge.svg?branch=master[]\nimage:https://badgen.net/maven/v/maven-central/io.github.joke.spring-factory/bom[link=https://search.maven.org/search?q=g:io.github.joke.spring-factory]\nimage:https://badgen.net/github/release/joke/spring-factory/stable[]\nimage:https://badgen.net/github/dependabot/joke/spring-factory[]\nimage:https://badgen.net/codecov/c/github/babel/babel[link=https://codecov.io/gh/joke/spring-factory]\nimage:https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fjoke%2Fspring-factory%2Fmaster)[link=https://dashboard.stryker-mutator.io/reports/github.com/joke/spring-factory/master]\nimage:https://badgen.net/github/dependabot/joke/spock-mockable[]\nimage:https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg[link=https://conventionalcommits.org]\nimage:https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit[pre-commit, link=https://github.com/pre-commit/pre-commit]\n\nManage your spring factories (`META-INF/spring.factories`) by annotation much like `link:https://github.com/google/auto/tree/master/service[AutoService]` does for `META-INF/services`.\n\n* @SpringFactory accepts multiple classes\n* link:https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing[Gradle incremental annotation processing] supported\n* Separate artifacts for annotation processor and annotations\n* Bill of Materials artifact included\n\n== Dependency Setup\n\nimage:https://img.shields.io/maven-central/v/io.github.joke.spring-factory/bom?label=maven%20central[link=https://search.maven.org/search?q=g:io.github.joke.spring-factory]\n\n.Gradle build.gradle\n[source,groovy]\n----\ndependencies {\n  annotationProcessor platform('io.github.joke.spring-factory:bom:1.0.0')\n  annotationProcessor 'io.github.joke.spring-factory:processor'\n\n  compileOnly platform('io.github.joke.spring-factory:bom:1.0.0')\n  compileOnly 'io.github.joke.spring-factory:annotations'\n}\n----\n\n.Maven pom.xml\n[source,xml]\n----\n\u003cbuild\u003e\n  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003eio.github.joke.spring-factory\u003c/groupId\u003e\n      \u003cartifactId\u003eannotations\u003c/artifactId\u003e\n      \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n      \u003cartifactId\u003emaven-compiler-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e3.8.1\u003c/version\u003e\n      \u003cconfiguration\u003e\n        \u003csource\u003e1.8\u003c/source\u003e\n        \u003ctarget\u003e1.8\u003c/target\u003e\n        \u003cannotationProcessorPaths\u003e\n          \u003cpath\u003e\n            \u003cgroupId\u003eio.github.joke.spring-factory\u003c/groupId\u003e\n            \u003cartifactId\u003eprocessor\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.0\u003c/version\u003e\n          \u003c/path\u003e\n        \u003c/annotationProcessorPaths\u003e\n      \u003c/configuration\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n----\n\n== Usage\n\nManage your Spring auto `META-INF/spring.factories` by annotation.\nSimply annotate your classes and let the annotation processor do the rest.\n\nThis works in the same fashion as `link:https://github.com/google/auto/tree/master/service[AutoService]`\nbut for Spring's factory meta files.\n\n.Usage example\n[source,java]\n----\n@SpringFactory(EnableAutoConfiguration.class)\npublic class MyAutoConfiguration {}\n\n@SpringFactory({EnableAutoConfiguration.class, AutoConfigureDataMongo.class})\npublic class MyMongoAutoConfiguration {}\n----\n\n.Generated output `META-INF/spring.factories`\n[source,properties]\n----\norg.springframework.boot.autoconfigure.EnableAutoConfiguration=\\\npackage.name.of.first.class.MyAutoConfiguration,\\\npackage.name.of.second.class.MyMongoAutoConfiguration\norg.springframework.boot.test.autoconfigure.data.mongo.AutoConfigureDataMongo=\\\npackage.name.of.second.class.MyMongoAutoConfiguration\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoke%2Fspring-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoke%2Fspring-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoke%2Fspring-factory/lists"}