1 package com.atlassian.plugins.codegen.modules;
2
3 import com.atlassian.plugins.codegen.ArtifactDependency;
4 import com.atlassian.plugins.codegen.ComponentImport;
5
6 import static com.atlassian.plugins.codegen.ArtifactDependency.dependency;
7 import static com.atlassian.plugins.codegen.ArtifactDependency.Scope.PROVIDED;
8 import static com.atlassian.plugins.codegen.ArtifactDependency.Scope.TEST;
9 import static com.atlassian.plugins.codegen.ClassId.fullyQualified;
10 import static com.atlassian.plugins.codegen.ComponentImport.componentImport;
11 import static com.atlassian.plugins.codegen.VersionId.versionProperty;
12
13
14
15
16 public 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 }