PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/plugin-module-codegen-engine/src/main/java/com/atlassian/plugins/codegen/modules/Dependencies.java

https://bitbucket.org/mmeinhold/amps
Java | 39 lines | 25 code | 11 blank | 3 comment | 0 complexity | 86d4a900de1ea34b599886ac04b807ed MD5 | raw file
 1package com.atlassian.plugins.codegen.modules;
 2
 3import com.atlassian.plugins.codegen.ArtifactDependency;
 4import com.atlassian.plugins.codegen.ComponentImport;
 5
 6import static com.atlassian.plugins.codegen.ArtifactDependency.dependency;
 7import static com.atlassian.plugins.codegen.ArtifactDependency.Scope.PROVIDED;
 8import static com.atlassian.plugins.codegen.ArtifactDependency.Scope.TEST;
 9import static com.atlassian.plugins.codegen.ClassId.fullyQualified;
10import static com.atlassian.plugins.codegen.ComponentImport.componentImport;
11import static com.atlassian.plugins.codegen.VersionId.versionProperty;
12
13/**
14 * Commonly used {@link ArtifactDependency} and {@link ComponentImport} instances.
15 */
16public final class Dependencies
17{
18    public static final ArtifactDependency HTTPCLIENT_TEST = dependency("org.apache.httpcomponents", "httpclient", "4.1.1", TEST);
19
20    public static final ArtifactDependency MOCKITO_TEST = dependency("org.mockito", "mockito-all", "1.8.5", TEST);
21    
22    public static final ArtifactDependency SERVLET_API = dependency("javax.servlet", "servlet-api", "2.4", PROVIDED);
23
24    public static final ArtifactDependency SAL_API = dependency("com.atlassian.sal", "sal-api",
25        versionProperty("sal.api.version", "2.4.0"), PROVIDED);
26
27    public static final ArtifactDependency TEMPLATE_RENDERER_API = dependency("com.atlassian.templaterenderer", "atlassian-template-renderer-api",
28        versionProperty("atlassian.templaterenderer.version", "1.0.5"), PROVIDED);
29
30    public static final ArtifactDependency COMMONS_LANG = dependency("commons-lang", "commons-lang", "2.4", PROVIDED);
31
32    public static final ComponentImport APPLICATION_PROPERTIES_IMPORT = componentImport("com.atlassian.sal.api.ApplicationProperties");
33
34    public static final ComponentImport I18N_RESOLVER_IMPORT = componentImport("com.atlassian.sal.api.message.I18nResolver");
35
36    public static final ComponentImport TEMPLATE_RENDERER_IMPORT = componentImport("com.atlassian.templaterenderer.TemplateRenderer")
37        .alternateInterfaces(fullyQualified("com.atlassian.templaterenderer.velocity.one.five.VelocityTemplateRenderer"),
38                             fullyQualified("com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer"));
39}