diff --git a/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerAutoConfiguration.java b/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerAutoConfiguration.java index d070ef3..1069a86 100644 --- a/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerAutoConfiguration.java +++ b/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerAutoConfiguration.java @@ -23,16 +23,19 @@ import org.springframework.cloud.deployer.spi.task.TaskLauncher; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; import org.springframework.core.Ordered; /** * Creates a {@link LocalAppDeployer} and {@link LocalTaskLauncher} * * @author Mark Fisher + * @author Ilayaperumal Gopinathan */ @Configuration @EnableConfigurationProperties(LocalDeployerProperties.class) @AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE) +@Profile(LocalDeployerProperties.LOCAL_PROFILE) public class LocalDeployerAutoConfiguration { @Bean diff --git a/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerProperties.java b/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerProperties.java index d1f5dc2..48fde39 100644 --- a/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerProperties.java +++ b/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalDeployerProperties.java @@ -31,6 +31,8 @@ @ConfigurationProperties(prefix = LocalDeployerProperties.PREFIX) public class LocalDeployerProperties { + public static final String LOCAL_PROFILE = "local"; + /** * Top level prefix for local deployer configuration properties. */