Skip to content

Commit

Permalink
build: expose context-propagation as api from http (#10721)
Browse files Browse the repository at this point in the history
I recently worked on a [commercial support ticket](https://micronaut.io/support/) where I need to [add the `context-propagation` dependency](sdelamo/mn-log-ip@42b559a). 

[`micronaut-runtime` exposes `context-propagation` as api](https://github.com/micronaut-projects/micronaut-core/blob/4.5.x/runtime/build.gradle#L11). 

However, the application was a groovy app. Thus, it was using `micronaut-runtime-groovy`. [`micronaut-runtime-groovy` does not expose `context-propagation`](https://github.com/micronaut-projects/micronaut-groovy/blob/4.4.x/runtime-groovy/build.gradle). 
This PR makes the `http` module expose `context-propagation` as `api`. [`http` already exposes `context` as api](https://github.com/micronaut-projects/micronaut-core/blob/4.5.x/http/build.gradle#L9).
  • Loading branch information
sdelamo authored Apr 16, 2024
1 parent 503ccc4 commit 46b2dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
annotationProcessor project(":graal")
api project(":context")
api project(":core-reactive")
implementation project(":context-propagation")
api(project(":context-propagation"))
implementation libs.managed.reactor
compileOnly libs.managed.kotlinx.coroutines.core
compileOnly libs.managed.kotlinx.coroutines.reactor
Expand Down

0 comments on commit 46b2dc8

Please sign in to comment.