load("//tools/bzl:maven_jar.bzl", "maven_jar", "GERRIT", "MAVEN_CENTRAL", "MAVEN_LOCAL")

COMMONMARK_VERSION = '0.9.0'

def external_plugin_deps():
  maven_jar(
    name = 'gitiles_servlet',
    artifact = 'com.google.gitiles:gitiles-servlet:0.2-5',
    sha1 = '18186bd83a8c52a4a965472fcb9b4ea87862eb35',
    repository = GERRIT,
  )

  # prettify must match the version used in Gitiles
  maven_jar(
    name = 'prettify',
    artifact = 'com.github.twalcari:java-prettify:1.2.2',
    sha1 = 'b8ba1c1eb8b2e45cfd465d01218c6060e887572e',
  )

  # commonmark must match the version used in Gitiles
  maven_jar(
    name = 'commonmark',
    artifact = 'com.atlassian.commonmark:commonmark:' + COMMONMARK_VERSION,
    sha1 = '4eb11e3f9aaecafc6073b84c15f66376ef8dc5d3',
  )

  maven_jar(
    name = 'cm_autolink',
    artifact = 'com.atlassian.commonmark:commonmark-ext-autolink:' + COMMONMARK_VERSION,
    sha1 = 'b81d7f0e2bdb987d3f447f3e92756bcdbb5ff537',
  )

  maven_jar(
    name = 'autolink',
    artifact = 'org.nibor.autolink:autolink:0.6.0',
    sha1 = '3986d016a14e8c81afeec752f19af29b20e8367b',
  )

  maven_jar(
    name = 'gfm_strikethrough',
    artifact = 'com.atlassian.commonmark:commonmark-ext-gfm-strikethrough:' + COMMONMARK_VERSION,
    sha1 = 'd6814aac1a6aaa473c0c3ef0a23bfff8836d1e67',
  )

  maven_jar(
    name = 'gfm_tables',
    artifact = 'com.atlassian.commonmark:commonmark-ext-gfm-tables:' + COMMONMARK_VERSION,
    sha1 = '4c8a93ef905ef8fc35d6379965641a980d67e304',
  )

@@ -239,17 +239,17 @@
 let:0.2-
-5
+6
 ',%0A    s
@@ -259,48 +259,48 @@
  = '
-18186bd83a8c52a4a965472fcb9b4ea87862eb35
+74a3b22c9283adafafa1e388d62f693e5e2fab2b
 ',%0A 

Upgrade gitiles-servlet to 0.2-6