Skip to content

Add module-info to Hibernate validator (Jakarta) #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions http-hibernate-validator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@
<scope>provided</scope>
</dependency>

<!-- java annotation processors -->

<dependency>
<groupId>io.avaje</groupId>
<artifactId>avaje-inject-generator</artifactId>
<version>8.11</version>
<scope>provided</scope>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@InjectModule(name = "bean-validator", provides = io.avaje.http.api.Validator.class)
/**
* Provides a Hibernate Validator to use with avaje-http.
*/
package io.avaje.http.hibernate.validator;

import io.avaje.inject.InjectModule;
12 changes: 12 additions & 0 deletions http-hibernate-validator/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import io.avaje.http.hibernate.validator.ValidatorProvider;

module io.avaje.http.hibernate.validator {

exports io.avaje.http.hibernate.validator;

requires io.avaje.http.api;
requires io.avaje.inject;
requires jakarta.validation;

provides io.avaje.inject.spi.Plugin with ValidatorProvider;
}