Skip to content

Commit

Permalink
Hibernate-validator managed version and api Gradle configuration (#333)
Browse files Browse the repository at this point in the history
* Use Kotlin DSL

* make hibernate-validator a managed version

* hibernate validator an api dependency
  • Loading branch information
sdelamo authored Jul 21, 2023
1 parent c773164 commit 7d7bd50
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[versions]
micronaut = "4.0.0"
micronaut-docs = "2.0.0"
managed-hibernate-validator = '8.0.1.Final'

micronaut-serde = "2.0.1"
micronaut-test = "4.0.0"
micronaut-validation = "4.0.1"

groovy = "4.0.13"
hibernate-validator = '8.0.1.Final'


[libraries]
# Core
Expand All @@ -16,4 +17,4 @@ micronaut-core = { module = 'io.micronaut:micronaut-core-bom', version.ref = 'mi
# BOMs
micronaut-serde = { module = "io.micronaut.serde:micronaut-serde-bom", version.ref = "micronaut-serde" }
micronaut-validation = { module = "io.micronaut.validation:micronaut-validation-bom", version.ref = "micronaut-validation" }
hibernate-validator = { module = 'org.hibernate:hibernate-validator', version.ref = 'hibernate-validator' }
hibernate-validator = { module = 'org.hibernate:hibernate-validator', version.ref = 'managed-hibernate-validator' }
20 changes: 0 additions & 20 deletions hibernate-validator/build.gradle

This file was deleted.

20 changes: 20 additions & 0 deletions hibernate-validator/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
id("io.micronaut.build.internal.hibernate-validator-module")
}

dependencies {
annotationProcessor(mn.micronaut.graal)
annotationProcessor(mn.micronaut.inject.java)
compileOnly(mn.micronaut.router)
api(libs.hibernate.validator)
implementation(mn.micronaut.inject)
implementation(mnValidation.micronaut.validation)

testAnnotationProcessor(mnValidation.micronaut.validation.processor)
testCompileOnly(mnValidation.micronaut.validation.processor)
testAnnotationProcessor(mn.micronaut.inject.java)
testCompileOnly(mn.micronaut.inject.groovy)
testImplementation(mn.micronaut.http.server.netty)
testRuntimeOnly(mn.snakeyaml)
testImplementation(mnSerde.micronaut.serde.jackson)
}

0 comments on commit 7d7bd50

Please sign in to comment.