An open API service indexing awesome lists of open source software.

https://github.com/jbock-java/injectable-factory


https://github.com/jbock-java/injectable-factory

java jpms

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

[![injectable-factory-compiler](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/injectable-factory-compiler/badge.svg?color=grey&subject=injectable-factory-compiler)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/injectable-factory-compiler)
[![injectable-factory](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/injectable-factory/badge.svg?subject=injectable-factory)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/injectable-factory)

This is a clone of [auto-factory](https://github.com/google/auto/tree/master/factory) that has a module descriptor
and generates `jakarta.inject.*` annotations instead of `javax.inject.*`.

Add to `module-info.java`:

````
requires com.google.auto.factory;
````

Gradle users add this to `build.gradle`:

````groovy
implementation('io.github.jbock-java:injectable-factory:1.0')
annotationProcessor('io.github.jbock-java:injectable-factory-compiler:1.0')
````