Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
Fix ConditionalOnClass
Browse files Browse the repository at this point in the history
Currently, `ConditionalOnClass` check on a class in the same jar.
In order to enable this auto-configuration the check should be
against depenencies such as CloudState in
`io.cloudstate:cloud-state-javasupport`.
  • Loading branch information
eddumelendez committed Sep 27, 2020
1 parent fecab35 commit 457237d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import io.cloudstate.springboot.starter.internal.CloudstateEntityScan;

@Configuration
@ConditionalOnClass(CloudstateProperties.class)
@ConditionalOnClass(CloudState.class)
@EnableConfigurationProperties(CloudstateProperties.class)
@ComponentScan(basePackages = "io.cloudstate.springboot.starter")
public class CloudstateAutoConfiguration {
Expand Down

0 comments on commit 457237d

Please sign in to comment.