title: Annotation-specified bean name conflicts with existing error but only in gradle
body: <p>I'm trying to deploy an application which works fine using run-jetty-run in eclipse. However if I try to deploy it in gradle with gradlew jettyRun it throws this error</p>
  
  <blockquote>
    <p>Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'NRRDaoImpl' for bean class [au.com.xxx.sssbt.NRL.dao.impl.NRRDaoImpl] conflicts with existing, non-compatible bean definition of same name and class [au.com.xxx.sssb.dao.impl.NRRDaoImpl]</p>
  </blockquote>
  
  <p>au.com.xxx.sssb.dao.impl.NRRDaoImpl does not exist in my code</p>
  
  <p>I have a previous version which works. I believe the only addition was adding @Schedule to the code.</p>
  
  <p>Thanks</p>