IJ failing with 'springSecurityFilterChain This object has already been built' but gradle works

I have a Gradle app that runs just fine on cmd line (gradle clean bootRun --console plain), however, when I try to run it in IJ I get...

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is org.springframework.security.config.annotation.AlreadyBuiltException: This object has already been built
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.12.RELEASE.jar:4.3.12.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.12.RELEASE.jar:4.3.12.RELEASE]
    ... 20 common frames omitted
Caused by: org.springframework.security.config.annotation.AlreadyBuiltException: This object has already been built

Why is it building in CMD but not IJ? I tried refreshing the Gradle project and even invalidating the cache and restarting but nothing works.