Skip to content

Commit

Permalink
Apply changes to Auto-configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
msdousti committed Jun 19, 2023
1 parent 47ced1a commit f0c2f73
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.opentracing.Tracer;
import org.apache.hc.client5.http.classic.HttpClient;
import org.apiguardian.api.API;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
Expand All @@ -22,7 +23,7 @@
* We use org.zalando.riptide.autoconfigure.FlowHttpRequestInterceptor, that is adapted to Apache HttpClient 5.x.
*/
@API(status = STABLE)
@Configuration
@AutoConfiguration
@ConditionalOnBean(Tracer.class)
@AutoConfigureAfter(name = {
"org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package org.zalando.riptide.autoconfigure;

import org.apiguardian.api.API;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static org.apiguardian.api.API.Status.INTERNAL;
import static org.apiguardian.api.API.Status.STABLE;

@API(status = STABLE)
@Configuration
@AutoConfiguration
@AutoConfigureAfter(name = {
"org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration",
"org.zalando.logbook.autoconfigure.LogbookAutoConfiguration",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apiguardian.api.API;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -12,7 +13,7 @@
import static org.springframework.test.web.client.MockRestServiceServer.createServer;

@API(status = EXPERIMENTAL)
@Configuration
@AutoConfiguration
@AutoConfigureBefore(RiptideAutoConfiguration.class)
public class RiptideTestAutoConfiguration {

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.zalando.riptide.autoconfigure.OpenTracingFlowIdAutoConfiguration
org.zalando.riptide.autoconfigure.RiptideAutoConfiguration
org.zalando.riptide.autoconfigure.RiptideTestAutoConfiguration

0 comments on commit f0c2f73

Please sign in to comment.