Skip to content
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

build: Micronaut 4.0.0-SNAPSHOT #263

Closed
wants to merge 12 commits into from
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ plugins {
id 'io.micronaut.build.internal.docs'
id 'io.micronaut.build.internal.quality-reporting'
}

repositories {
mavenCentral()
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
}
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
[versions]
micronaut = "4.0.0-SNAPSHOT"
micronaut-test = "4.0.0-SNAPSHOT"
micronaut-docs = "2.0.0"
micronaut-serialization = "2.0.0-SNAPSHOT"

groovy = "4.0.6"
spock = "2.3-groovy-4.0"

glassfish-el = '2.2.1-b05'
glassfish-javax-el = '3.0.1-b12'
glassfish-jakarta-el = '3.0.4'
hibernate-validator = '6.2.5.Final'

[libraries]
micronaut-serde = { module = "io.micronaut.serde:micronaut-serde-bom", version.ref = "micronaut-serialization" }

glassfish-el = { module = 'org.glassfish.web:el-impl', version.ref = 'glassfish-el' }
glassfish-javax-el = { module = 'org.glassfish:javax.el', version.ref = 'glassfish-javax-el' }
glassfish-jakarta-el = { module = 'org.glassfish:jakarta.el', version.ref = 'glassfish-jakarta-el' }
Expand Down
5 changes: 5 additions & 0 deletions hibernate-validator-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import org.gradle.internal.execution.caching.CachingState.enabled

plugins {
id("io.micronaut.build.internal.bom")
}
30 changes: 0 additions & 30 deletions hibernate-validator/build.gradle

This file was deleted.

13 changes: 13 additions & 0 deletions hibernate-validator/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("io.micronaut.build.internal.hibernate-validator-module")
}
dependencies {
annotationProcessor(mn.micronaut.graal)
compileOnly(libs.glassfish.el)
compileOnly(mn.micronaut.router)
implementation(libs.hibernate.validator)
implementation(mn.micronaut.validation)
runtimeOnly(libs.glassfish.jakarta.el)
testImplementation(mn.micronaut.http.server.netty)
testImplementation(mnSerde.micronaut.serde.jackson)
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import io.micronaut.context.DefaultApplicationContext
import io.micronaut.context.annotation.Value
import io.micronaut.context.exceptions.BeanInstantiationException
import org.hibernate.validator.constraints.URL
import spock.lang.PendingFeature
import spock.lang.Specification
import spock.util.environment.RestoreSystemProperties

Expand All @@ -31,7 +30,6 @@ import jakarta.inject.Singleton
*/
class ValidatedBeanSpec extends Specification {

@PendingFeature
void "test validated bean invalid bean"() {
given:
System.setProperty("a.url", "test")
Expand All @@ -55,7 +53,6 @@ List of constraint violations:[
''')
}

@PendingFeature
void "test validated bean invalid bean custom validator"() {

given:
Expand All @@ -80,7 +77,6 @@ List of constraint violations:[
''')
}

@PendingFeature
@RestoreSystemProperties
void "test validated bean invalid bean custom validator that isnt a bean"() {

Expand Down
25 changes: 0 additions & 25 deletions settings.gradle

This file was deleted.

22 changes: 22 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}

plugins {
id("io.micronaut.build.shared.settings") version "6.1.0"
}

rootProject.name = "hibernate-validator-parent"

include("hibernate-validator-bom")
include("hibernate-validator")

configure<io.micronaut.build.MicronautBuildSettingsExtension> {
// Required for 4.0.0-SNAPSHOT, can be removed after
addSnapshotRepository()
importMicronautCatalog()
importMicronautCatalog("micronaut-serde")
}