Skip to content

Commit

Permalink
made micronaut dependencies optional and disabled BOM updates (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr authored Dec 5, 2023
1 parent 3094ffa commit d555ccb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion docs/guide/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1043,14 +1043,16 @@ 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


==== 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.

Expand Down
30 changes: 13 additions & 17 deletions libs/gru-micronaut/gru-micronaut.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,33 @@
*/
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')

compileOnly "org.apache.groovy:groovy"
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 {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

tasks.withType(Test).configureEach {
useJUnitPlatform()
}

0 comments on commit d555ccb

Please sign in to comment.