diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8dcfd9c6..fccf2006 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,8 @@ jobs: strategy: matrix: repository: - - agorapulse/agorapulse-bom + # temporary disabled until migrated to Micronaut 4.x everywhere + # - agorapulse/agorapulse-bom - agorapulse/agorapulse-oss steps: - uses: actions/checkout@v1 diff --git a/docs/guide/src/docs/asciidoc/index.adoc b/docs/guide/src/docs/asciidoc/index.adoc index 031b499a..f6879ff0 100644 --- a/docs/guide/src/docs/asciidoc/index.adoc +++ b/docs/guide/src/docs/asciidoc/index.adoc @@ -1043,7 +1043,7 @@ The core idea is to provide methods to update request and to check the response * The minimal Java version has been set to Java 11 * The Micronaut module has been upgraded to Micronaut 4.x, Groovy 4.x and Java 17 -* The HTTP module has been removed as the `Http` client is not part of the core `gru` package +* The HTTP module has been removed as the `Http` client is now part of the core `gru` package * The original HTTP module has been renamed to `gru-okhttp` and the client accordingly to `OkHttp` * The libraries required to evaluate HTML responses has been moved to compile only dependencies * Micronaut module now uses `micronaut-http-client` instead of the default HTTP one @@ -1051,6 +1051,8 @@ The core idea is to provide methods to update request and to check the response ==== New Features +* New JDK based `Http` client +* New Microaut HTTP Client based client * Small improvements in the Kotlin DSL * No need to specify the reference class when calling `Gru.create()` or `Http.create()`. The class is automatically detected using the stack walker API. diff --git a/libs/gru-micronaut/gru-micronaut.gradle b/libs/gru-micronaut/gru-micronaut.gradle index 3726c3e6..e1fe0f23 100644 --- a/libs/gru-micronaut/gru-micronaut.gradle +++ b/libs/gru-micronaut/gru-micronaut.gradle @@ -17,21 +17,13 @@ */ plugins { id("groovy") - id("io.micronaut.library") version "4.2.0" -} - -micronaut { - importMicronautPlatform = true - version("4.2.0") - testRuntime("spock2") - processing { - incremental(true) - annotations("heist.*") - } } dependencies { - annotationProcessor "io.micronaut.validation:micronaut-validation" + annotationProcessor platform('io.micronaut.platform:micronaut-platform:4.2.0') + annotationProcessor 'io.micronaut.validation:micronaut-validation-processor' + annotationProcessor 'io.micronaut.validation:micronaut-validation' + annotationProcessor 'io.micronaut:micronaut-inject-java' api project(':gru') @@ -39,11 +31,11 @@ dependencies { compileOnly project(':gru-kotlin') compileOnly project(':gru-okhttp') - implementation("io.micronaut.validation:micronaut-validation") - implementation("io.micronaut:micronaut-http-server") - implementation("io.micronaut:micronaut-http-client") - - testImplementation project(':gru-okhttp') + compileOnly platform('io.micronaut.platform:micronaut-platform:4.2.0') + compileOnly 'io.micronaut.validation:micronaut-validation' + compileOnly 'io.micronaut:micronaut-http-client' + compileOnly 'io.micronaut:micronaut-http-server' + compileOnly 'io.micronaut:micronaut-inject' } java { @@ -51,3 +43,7 @@ java { languageVersion.set(JavaLanguageVersion.of(17)) } } + +tasks.withType(Test).configureEach { + useJUnitPlatform() +}