PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/plugin-module-codegen-engine/src/test/java/fake/annotation/parser/modules/dependencies/ValidJiraWithMissingScopeDependency.java

https://bitbucket.org/mmeinhold/amps
Java | 29 lines | 21 code | 5 blank | 3 comment | 0 complexity | 2814e07118bbe7d572333381959a21a0 MD5 | raw file
 1package fake.annotation.parser.modules.dependencies;
 2
 3import com.atlassian.plugins.codegen.ArtifactDependency.Scope;
 4import com.atlassian.plugins.codegen.PluginProjectChangeset;
 5import com.atlassian.plugins.codegen.modules.PluginModuleCreator;
 6import com.atlassian.plugins.codegen.modules.PluginModuleProperties;
 7
 8import static com.atlassian.plugins.codegen.ArtifactDependency.dependency;
 9
10/**
11 * @since 3.6
12 */
13public class ValidJiraWithMissingScopeDependency implements PluginModuleCreator
14{
15    public static final String MODULE_NAME = "Valid Jira Module With Missing Scope Dependency";
16
17    @Override
18    public String getModuleName()
19    {
20        return MODULE_NAME;
21    }
22
23    @Override
24    public PluginProjectChangeset createModule(PluginModuleProperties props) throws Exception
25    {
26        return new PluginProjectChangeset()
27            .with(dependency("javax.servlet", "servlet-api", "2.4", Scope.DEFAULT));
28    }
29}