/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

  1. package com.atlassian.plugins.codegen.modules;
  2. import com.atlassian.plugins.codegen.ArtifactDependency;
  3. import com.atlassian.plugins.codegen.ComponentImport;
  4. import static com.atlassian.plugins.codegen.ArtifactDependency.dependency;
  5. import static com.atlassian.plugins.codegen.ArtifactDependency.Scope.PROVIDED;
  6. import static com.atlassian.plugins.codegen.ArtifactDependency.Scope.TEST;
  7. import static com.atlassian.plugins.codegen.ClassId.fullyQualified;
  8. import static com.atlassian.plugins.codegen.ComponentImport.componentImport;
  9. import static com.atlassian.plugins.codegen.VersionId.versionProperty;
  10. /**
  11. * Commonly used {@link ArtifactDependency} and {@link ComponentImport} instances.
  12. */
  13. public final class Dependencies
  14. {
  15. public static final ArtifactDependency HTTPCLIENT_TEST = dependency("org.apache.httpcomponents", "httpclient", "4.1.1", TEST);
  16. public static final ArtifactDependency MOCKITO_TEST = dependency("org.mockito", "mockito-all", "1.8.5", TEST);
  17. public static final ArtifactDependency SERVLET_API = dependency("javax.servlet", "servlet-api", "2.4", PROVIDED);
  18. public static final ArtifactDependency SAL_API = dependency("com.atlassian.sal", "sal-api",
  19. versionProperty("sal.api.version", "2.4.0"), PROVIDED);
  20. public static final ArtifactDependency TEMPLATE_RENDERER_API = dependency("com.atlassian.templaterenderer", "atlassian-template-renderer-api",
  21. versionProperty("atlassian.templaterenderer.version", "1.0.5"), PROVIDED);
  22. public static final ArtifactDependency COMMONS_LANG = dependency("commons-lang", "commons-lang", "2.4", PROVIDED);
  23. public static final ComponentImport APPLICATION_PROPERTIES_IMPORT = componentImport("com.atlassian.sal.api.ApplicationProperties");
  24. public static final ComponentImport I18N_RESOLVER_IMPORT = componentImport("com.atlassian.sal.api.message.I18nResolver");
  25. public static final ComponentImport TEMPLATE_RENDERER_IMPORT = componentImport("com.atlassian.templaterenderer.TemplateRenderer")
  26. .alternateInterfaces(fullyQualified("com.atlassian.templaterenderer.velocity.one.five.VelocityTemplateRenderer"),
  27. fullyQualified("com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer"));
  28. }