
This snapshot includes numerous changes since the previous one. There is currently nothing that we specifically need in this snapshot, but it brings us closer to what will be in the upcoming 4.7.0 release and will allow us to potentially catch any issues before release. Change-Id: I4c3642eab4c1f1128e2e19cf656dee13270662e2
67 lines
2.1 KiB
Python
67 lines
2.1 KiB
Python
load("//tools/bzl:maven_jar.bzl", "GERRIT", "MAVEN_LOCAL", "MAVEN_CENTRAL", "maven_jar")
|
|
|
|
_JGIT_VERS = "4.6.1.201703071140-r.149-g61f830d3a"
|
|
|
|
_DOC_VERS = "4.6.0.201612231935-r" # Set to _JGIT_VERS unless using a snapshot
|
|
|
|
JGIT_DOC_URL = "http://download.eclipse.org/jgit/site/" + _DOC_VERS + "/apidocs"
|
|
|
|
_JGIT_REPO = GERRIT # Leave here even if set to MAVEN_CENTRAL.
|
|
|
|
# set this to use a local version.
|
|
# "/home/<user>/projects/jgit"
|
|
LOCAL_JGIT_REPO = ""
|
|
|
|
def jgit_repos():
|
|
if LOCAL_JGIT_REPO:
|
|
native.local_repository(
|
|
name = "jgit",
|
|
path = LOCAL_JGIT_REPO,
|
|
)
|
|
else:
|
|
jgit_maven_repos()
|
|
|
|
def jgit_maven_repos():
|
|
maven_jar(
|
|
name = "jgit_lib",
|
|
artifact = "org.eclipse.jgit:org.eclipse.jgit:" + _JGIT_VERS,
|
|
repository = _JGIT_REPO,
|
|
sha1 = "dbb390b827b968558342e882e0c9b90e1ed037a2",
|
|
src_sha1 = "05d8939d08fe75a080fbf84f3163df5127950985",
|
|
unsign = True,
|
|
)
|
|
maven_jar(
|
|
name = "jgit_servlet",
|
|
artifact = "org.eclipse.jgit:org.eclipse.jgit.http.server:" + _JGIT_VERS,
|
|
repository = _JGIT_REPO,
|
|
sha1 = "136026aa28b065d04194cadcb3371b5a3f6c7235",
|
|
unsign = True,
|
|
)
|
|
maven_jar(
|
|
name = "jgit_archive",
|
|
artifact = "org.eclipse.jgit:org.eclipse.jgit.archive:" + _JGIT_VERS,
|
|
repository = _JGIT_REPO,
|
|
sha1 = "8be5fa1000cf66ff3deae257bb29870c93f83363",
|
|
)
|
|
maven_jar(
|
|
name = "jgit_junit",
|
|
artifact = "org.eclipse.jgit:org.eclipse.jgit.junit:" + _JGIT_VERS,
|
|
repository = _JGIT_REPO,
|
|
sha1 = "d6a6c49b137a7f1a30ec55a228826d9146c0eba4",
|
|
unsign = True,
|
|
)
|
|
|
|
def jgit_dep(name):
|
|
mapping = {
|
|
"@jgit_junit//jar": "@jgit//org.eclipse.jgit.junit:junit",
|
|
"@jgit_lib//jar:src": "@jgit//org.eclipse.jgit:libjgit-src.jar",
|
|
"@jgit_lib//jar": "@jgit//org.eclipse.jgit:jgit",
|
|
"@jgit_servlet//jar":"@jgit//org.eclipse.jgit.http.server:jgit-servlet",
|
|
"@jgit_archive//jar": "@jgit//org.eclipse.jgit.archive:jgit-archive",
|
|
}
|
|
|
|
if LOCAL_JGIT_REPO:
|
|
return mapping[name]
|
|
else:
|
|
return name
|