diff --git a/pom.xml b/pom.xml index 907b026..cadca7c 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cryptvault jar cryptvault - 1.0.2 + 3-1.0.2 Versioned crypto library https://github.com/bolcom/cryptvault @@ -43,26 +43,26 @@ org.springframework.boot spring-boot-autoconfigure - 2.4.0 + 3.2.3 provided org.springframework.boot spring-boot-starter-test - 2.4.0 + 3.2.3 test junit junit - 4.13.1 + 4.13.2 test org.assertj assertj-core - 3.18.1 + 3.25.3 test diff --git a/src/main/java/com/bol/config/CryptVaultAutoConfiguration.java b/src/main/java/com/bol/config/CryptVaultAutoConfiguration.java index 61e8c88..2bf3b72 100644 --- a/src/main/java/com/bol/config/CryptVaultAutoConfiguration.java +++ b/src/main/java/com/bol/config/CryptVaultAutoConfiguration.java @@ -1,16 +1,16 @@ package com.bol.config; import com.bol.crypt.CryptVault; +import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Component; import java.util.Base64; import java.util.List; -@Configuration +@AutoConfiguration @ConditionalOnProperty("cryptvault.keys[0].key") public class CryptVaultAutoConfiguration { diff --git a/src/main/resources/META-INF/spring.factories b/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 1912c2b..0000000 --- a/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.bol.config.CryptVaultAutoConfiguration diff --git a/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports new file mode 100644 index 0000000..0f355bd --- /dev/null +++ b/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -0,0 +1 @@ +com.bol.config.CryptVaultAutoConfiguration \ No newline at end of file