From bd443914ad2d16466a9690069090144405f8513b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sat, 26 Sep 2020 20:20:07 -0500 Subject: [PATCH] Add CloudstateAutoConfigation into spring.factories Auto-Configuration can be enabled if all the conditions match. Also, there is no need to add `@EnableCloudState` in a spring-boot project if the auto-configuration is registered in `spring.factories`. --- .../src/main/resources/META-INF/spring.factories | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cloudstate-springboot-support/src/main/resources/META-INF/spring.factories diff --git a/cloudstate-springboot-support/src/main/resources/META-INF/spring.factories b/cloudstate-springboot-support/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000..a2f40d4 --- /dev/null +++ b/cloudstate-springboot-support/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ +io.cloudstate.springboot.starter.autoconfigure.CloudstateAutoConfiguration