i am trying my hand at writing a bamboo plugin and i need to use bandana to store keys however with the latest SDK i am getting an unresolved dependency, looking at other plugin examples in github, this seems to be the only thing i need to do to use it via dependency injection. I have tried using
atlas-run (default 6.8) and also atlas-run -v 9.2.1
i have looked everywhere on this, even in some opensource plugins that use bandanaManger, and i cant get though this issue
[INFO] [talledLocalContainer]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.myorg.bamboo.TestPlugin’:
Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.bandana.BandanaManager]: :
No qualifying bean of type [com.atlassian.bandana.BandanaManager] found for dependency:
expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations:
{}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.atlassian.bandana.BandanaManager]
found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
<span>import</span> com.atlassian.bamboo.bandana.PlanAwareBandanaContext;
<span>import</span> com.atlassian.bamboo.configuration.GlobalAdminAction;
<span>import</span> com.atlassian.bandana.BandanaContext;
<span>import</span> com.atlassian.bandana.BandanaManager;
<span>import</span> org.apache.log4j.Logger;
<span>public</span> <span>class</span> <span>TestPlugin</span> <span>extends</span> <span>GlobalAdminAction</span> {
<span>private</span> <span>static</span> <span>final</span> <span>Logger</span> <span>log</span> <span>=</span> Logger.getLogger(TestPlugin.class);
<span>private</span> BandanaManager bandanaManager;
<span>public</span> <span>TestPlugin</span><span>(final BandanaManager bandanaManager)</span> {
<span>this</span>.bandanaManager = bandanaManager;
}