{"id":54258,"library":"auto-service","title":"Auto Service","description":"Google Auto Service generates ServiceLoader provider-configuration files automatically.","status":"active","version":"1.1.1","language":"java","source_language":null,"source_url":"https://github.com/google/auto","tags":["annotation-processing","service-loader","dependency-injection","auto"],"install":[{"cmd":"<dependency>\n  <groupId>com.google.auto.service</groupId>\n  <artifactId>auto-service</artifactId>\n  <version>1.1.1</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.google.auto.service:auto-service:1.1.1'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"AutoService","correct":"com.google.auto.service.AutoService"}],"quickstart":{"code":"import com.google.auto.service.AutoService;\nimport java.util.ServiceLoader;\n\n@AutoService(MyService.class)\npublic class MyServiceImpl implements MyService {\n    @Override\n    public void execute() {\n        System.out.println(\"Service executed\");\n    }\n}","lang":"java","description":"Annotate a service implementation to automatically register it with ServiceLoader."},"warnings":[{"fix":"Add `maven-compiler-plugin` with `<annotationProcessorPaths>` including `com.google.auto.service:auto-service`.","message":"Auto Service requires annotation processing to be enabled in your build tool (e.g., Maven compiler plugin).","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'annot':14 'annotation-process':13 'auto':1,4,22 'automat':12 'configur':10 'depend':20 'dependency-inject':19 'file':11 'generat':6 'googl':3 'inject':21 'loader':18 'process':15 'provid':9 'provider-configur':8 'servic':2,5,17 'service-load':16 'serviceload':7","created_at":"2026-06-15T08:56:17.495064+00:00","updated_at":"2026-06-15T08:56:17.495064+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/google/auto/tree/main/service","github":"https://github.com/google/auto","docs":"https://appdoc.app/artifact/com.google.auto.service/auto-service/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["dependency-injection"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}