salesforce / rules_spring

Bazel rule for building Spring Boot apps as a deployable jar
BSD 3-Clause "New" or "Revised" License
224 stars 49 forks source link

Apps built by springboot rule fail launch from IntelliJ due to git.properties #11

Closed plaird closed 4 years ago

plaird commented 4 years ago

Repro:

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.boot.info.GitProperties' available: expected at least 1 bean which qualifies as autowire candidate

The workaround is to create an empty git.properties file in src/main/resources

plaird commented 4 years ago

It turned out this problem report was specific to the particular service using the rule.