diff --git a/opentracing-spring-tracer-configuration-starter/pom.xml b/opentracing-spring-tracer-configuration-starter/pom.xml index 7f04f67..23c43fc 100644 --- a/opentracing-spring-tracer-configuration-starter/pom.xml +++ b/opentracing-spring-tracer-configuration-starter/pom.xml @@ -50,6 +50,10 @@ org.springframework spring-core + + jakarta.annotation + jakarta.annotation-api + junit diff --git a/opentracing-spring-tracer-configuration-starter/src/main/resources/META-INF/spring.factories b/opentracing-spring-tracer-configuration-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports similarity index 65% rename from opentracing-spring-tracer-configuration-starter/src/main/resources/META-INF/spring.factories rename to opentracing-spring-tracer-configuration-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index b6fd086..594e8d7 100644 --- a/opentracing-spring-tracer-configuration-starter/src/main/resources/META-INF/spring.factories +++ b/opentracing-spring-tracer-configuration-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -1,3 +1,2 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -io.opentracing.contrib.spring.tracer.configuration.TracerAutoConfiguration,\ +io.opentracing.contrib.spring.tracer.configuration.TracerAutoConfiguration io.opentracing.contrib.spring.tracer.configuration.TracerRegisterAutoConfiguration diff --git a/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationTest.java b/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationTest.java index 1890539..eac798a 100644 --- a/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationTest.java +++ b/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationTest.java @@ -25,6 +25,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @SpringBootTest( @@ -32,6 +33,7 @@ BaseTest.SpringConfiguration.class, TracerAutoConfigurationTest.SpringConfiguration.class}) @RunWith(SpringJUnit4ClassRunner.class) +@DirtiesContext public class TracerAutoConfigurationTest extends BaseTest { @Autowired diff --git a/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperAndRegisteredTracerTest.java b/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperAndRegisteredTracerTest.java index 8f34b41..f59d8d7 100644 --- a/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperAndRegisteredTracerTest.java +++ b/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperAndRegisteredTracerTest.java @@ -24,6 +24,7 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @SpringBootTest( @@ -32,6 +33,7 @@ TracerAutoConfigurationWithWrapperAndRegisteredTracerTest.SpringConfiguration.class, TestTracerBeanPostProcessor.class}) @RunWith(SpringJUnit4ClassRunner.class) +@DirtiesContext public class TracerAutoConfigurationWithWrapperAndRegisteredTracerTest extends BaseTest { @BeforeClass diff --git a/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperTest.java b/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperTest.java index 47a33a4..fb16cab 100644 --- a/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperTest.java +++ b/opentracing-spring-tracer-configuration-starter/src/test/java/io/opentracing/contrib/spring/tracer/configuration/TracerAutoConfigurationWithWrapperTest.java @@ -22,6 +22,7 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @SpringBootTest( @@ -29,6 +30,7 @@ BaseTest.SpringConfiguration.class, TestTracerBeanPostProcessor.class}) @RunWith(SpringJUnit4ClassRunner.class) +@DirtiesContext public class TracerAutoConfigurationWithWrapperTest extends BaseTest { @Autowired diff --git a/pom.xml b/pom.xml index 302bd34..d40e990 100644 --- a/pom.xml +++ b/pom.xml @@ -58,9 +58,7 @@ UTF-8 ${project.basedir} - - 2.3.4.RELEASE + 2.7.17 0.1.8 0.33.0 4.12