Skip to content

Commit

Permalink
refactor to change how to pick included services
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Jan 14, 2024
1 parent e82ede1 commit a760f35
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ for all services defined in the classpath.
The generated service loader class name will follow the convention `[Service name]_ServiceLoader`, and will provide a
single method `load` that returns a list of that service implementations.

The user needs to specify a white-list of packages that will be included in the generation, the provided white-list
represent the package of the implemented service class not the implementations. the white list can be configured using a
The user needs to specify an include list of packages that will be included in the generation, the provided list
represent the package of the implemented service class not the implementations. the include list can be configured using a
compiler argument `dominoAutoInclude` or using `@DominoAuto` annotation on a type or package-info.
### Example

- Make sure the service package is included in the white-list :
- Make sure the service package is added to the include parameter of the annotation :

```xml

Expand Down
8 changes: 8 additions & 0 deletions domino-auto-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@
<pattern>org.checkerframework</pattern>
<shadedPattern>dominoauto.shaded.org.checkerframework</shadedPattern>
</relocation>
<relocation>
<pattern>io.github.classgraph</pattern>
<shadedPattern>dominoauto.shaded.io.github.classgraph</shadedPattern>
</relocation>
<relocation>
<pattern>nonapi.io.github.classgraph</pattern>
<shadedPattern>dominoauto.shaded.nonapi.io.github.classgraph</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<properties>
<snapshot.version>HEAD-SNAPSHOT</snapshot.version>
<next.release.version>1.0.3</next.release.version>
<next.release.version>1.0.2</next.release.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit a760f35

Please sign in to comment.