Bazel: Externalize JGIT_VERS constant
This is needed for defining external documentation link for javadoc rule. Change-Id: I562de840327c6b27941f7238023a47eb8d0b2394
This commit is contained in:

committed by
David Ostrovsky

parent
e48abffbca
commit
27fbb2b835
@@ -132,7 +132,7 @@ http_jar(
|
|||||||
sha256 = '80d63c117736ae2fb9837b7a39576f3f0c5bd19cd75127886550c77b4c478f87',
|
sha256 = '80d63c117736ae2fb9837b7a39576f3f0c5bd19cd75127886550c77b4c478f87',
|
||||||
)
|
)
|
||||||
|
|
||||||
JGIT_VERS = '4.5.0.201609210915-r'
|
load('//lib/jgit:jgit.bzl', 'JGIT_VERS')
|
||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = 'jgit',
|
name = 'jgit',
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load('//lib/jgit:jgit.bzl', 'JGIT_DOC_URL')
|
||||||
load('//tools/bzl:gwt.bzl', 'gwt_module')
|
load('//tools/bzl:gwt.bzl', 'gwt_module')
|
||||||
|
|
||||||
SRC = 'src/main/java/com/google/gerrit/extensions/'
|
SRC = 'src/main/java/com/google/gerrit/extensions/'
|
||||||
@@ -52,4 +53,5 @@ java_doc(
|
|||||||
title = 'Gerrit Review Extension API Documentation',
|
title = 'Gerrit Review Extension API Documentation',
|
||||||
libs = [':api'],
|
libs = [':api'],
|
||||||
pkgs = ['com.google.gerrit.extensions'],
|
pkgs = ['com.google.gerrit.extensions'],
|
||||||
|
external_docs = [JGIT_DOC_URL],
|
||||||
)
|
)
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
|
include_defs('//lib/jgit/jgit.bzl')
|
||||||
include_defs('//lib/maven.defs')
|
include_defs('//lib/maven.defs')
|
||||||
|
|
||||||
REPO = MAVEN_CENTRAL # Leave here even if set to MAVEN_CENTRAL.
|
REPO = MAVEN_CENTRAL # Leave here even if set to MAVEN_CENTRAL.
|
||||||
VERS = '4.5.0.201609210915-r'
|
|
||||||
DOC_VERS = VERS # Set to VERS unless using a snapshot
|
|
||||||
JGIT_DOC_URL="http://download.eclipse.org/jgit/site/" + DOC_VERS + "/apidocs"
|
|
||||||
|
3
lib/jgit/jgit.bzl
Normal file
3
lib/jgit/jgit.bzl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
JGIT_VERS = '4.5.0.201609210915-r'
|
||||||
|
DOC_VERS = JGIT_VERS # Set to VERS unless using a snapshot
|
||||||
|
JGIT_DOC_URL="http://download.eclipse.org/jgit/site/" + DOC_VERS + "/apidocs"
|
@@ -3,7 +3,7 @@ include_defs('//lib/JGIT_VERSION')
|
|||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = 'jgit-archive',
|
name = 'jgit-archive',
|
||||||
id = 'org.eclipse.jgit:org.eclipse.jgit.archive:' + VERS,
|
id = 'org.eclipse.jgit:org.eclipse.jgit.archive:' + JGIT_VERS,
|
||||||
sha1 = '2db2e7666672a31fa41b7e1dadcba51df6d30954',
|
sha1 = '2db2e7666672a31fa41b7e1dadcba51df6d30954',
|
||||||
license = 'jgit',
|
license = 'jgit',
|
||||||
repository = REPO,
|
repository = REPO,
|
||||||
|
@@ -3,7 +3,7 @@ include_defs('//lib/JGIT_VERSION')
|
|||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = 'jgit-servlet',
|
name = 'jgit-servlet',
|
||||||
id = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + VERS,
|
id = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + JGIT_VERS,
|
||||||
sha1 = '6e36638888918d9941dddec7e2abe1f162cc74d9',
|
sha1 = '6e36638888918d9941dddec7e2abe1f162cc74d9',
|
||||||
license = 'jgit',
|
license = 'jgit',
|
||||||
repository = REPO,
|
repository = REPO,
|
||||||
|
@@ -3,7 +3,7 @@ include_defs('//lib/JGIT_VERSION')
|
|||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = 'junit',
|
name = 'junit',
|
||||||
id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + VERS,
|
id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + JGIT_VERS,
|
||||||
sha1 = 'e8fb1d81f588c3174a9730bdecdbde9faa04140a',
|
sha1 = 'e8fb1d81f588c3174a9730bdecdbde9faa04140a',
|
||||||
license = 'DO_NOT_DISTRIBUTE',
|
license = 'DO_NOT_DISTRIBUTE',
|
||||||
repository = REPO,
|
repository = REPO,
|
||||||
|
@@ -3,7 +3,7 @@ include_defs('//lib/JGIT_VERSION')
|
|||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = 'jgit',
|
name = 'jgit',
|
||||||
id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS,
|
id = 'org.eclipse.jgit:org.eclipse.jgit:' + JGIT_VERS,
|
||||||
bin_sha1 = '3e3d0b73dcf4ad649f37758ea8502d92f3d299de',
|
bin_sha1 = '3e3d0b73dcf4ad649f37758ea8502d92f3d299de',
|
||||||
src_sha1 = 'fc352952db91a4046e4b832145eb2dc8afce8db1',
|
src_sha1 = 'fc352952db91a4046e4b832145eb2dc8afce8db1',
|
||||||
license = 'jgit',
|
license = 'jgit',
|
||||||
|
Reference in New Issue
Block a user