Merge branch 'stable-2.14' into stable-2.15
* stable-2.14: Bazel: Add fixes for --incompatible_load_{java|python}_rules_from_bzl Bazel: Bump minimum supported version to 0.29.0 Lucene index configuration and docs. Change-Id: I0a8c17c853746ca7367cc4b723b18f8d0f2b6094
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
0.26.1
|
0.29.0
|
||||||
|
|
||||||
|
@@ -2874,6 +2874,46 @@ to disk when the process finishes.
|
|||||||
+
|
+
|
||||||
Defaults to 300000 ms (5 minutes).
|
Defaults to 300000 ms (5 minutes).
|
||||||
|
|
||||||
|
|
||||||
|
[[index.name.maxMergeCount]]index.name.maxMergeCount::
|
||||||
|
+
|
||||||
|
Determines the max number of simultaneous merges that are allowed. If a merge
|
||||||
|
is necessary yet we already have this many threads running, the incoming thread
|
||||||
|
(that is calling add/updateDocument) will block until a merge thread has
|
||||||
|
completed. Note that Lucene will only run the smallest maxThreadCount merges
|
||||||
|
at a time. See the
|
||||||
|
link:https://lucene.apache.org/core/5_5_0/core/org/apache/lucene/index/ConcurrentMergeScheduler.html#setDefaultMaxMergesAndThreads(boolean)[
|
||||||
|
Lucene documentation] for further details.
|
||||||
|
+
|
||||||
|
Defaults to -1 for (auto detection).
|
||||||
|
|
||||||
|
|
||||||
|
[[index.name.maxThreadCount]]index.name.maxThreadCount::
|
||||||
|
+
|
||||||
|
Determines the max number of simultaneous Lucene merge threads that should be running at
|
||||||
|
once. This must be less than or equal to maxMergeCount. See the
|
||||||
|
link:https://lucene.apache.org/core/5_5_0/core/org/apache/lucene/index/ConcurrentMergeScheduler.html#setDefaultMaxMergesAndThreads(boolean)[
|
||||||
|
Lucene documentation] for further details.
|
||||||
|
+
|
||||||
|
For further details on Lucene index configuration (auto detection) which
|
||||||
|
affects maxThreadCount and maxMergeCount settings.
|
||||||
|
See the
|
||||||
|
link:https://lucene.apache.org/core/5_5_0/core/org/apache/lucene/index/ConcurrentMergeScheduler.html#AUTO_DETECT_MERGES_AND_THREADS[
|
||||||
|
Lucene documentation]
|
||||||
|
+
|
||||||
|
Defaults to -1 for (auto detection).
|
||||||
|
|
||||||
|
[[index.name.enableAutoIOThrottle]]index.name.enableAutoIOThrottle::
|
||||||
|
+
|
||||||
|
Allows the control of whether automatic IO throttling is enabled and used by
|
||||||
|
default in the lucene merge queue. Automatic dynamic IO throttling, which when
|
||||||
|
on is used to adaptively rate limit writes bytes/sec to the minimal rate necessary
|
||||||
|
so merges do not fall behind. See the
|
||||||
|
link:https://lucene.apache.org/core/5_5_0/core/org/apache/lucene/index/ConcurrentMergeScheduler.html#enableAutoIOThrottle()[
|
||||||
|
Lucene documentation] for further details.
|
||||||
|
+
|
||||||
|
Defaults to true (throttling enabled).
|
||||||
|
|
||||||
Sample Lucene index configuration:
|
Sample Lucene index configuration:
|
||||||
----
|
----
|
||||||
[index]
|
[index]
|
||||||
@@ -2882,10 +2922,17 @@ Sample Lucene index configuration:
|
|||||||
[index "changes_open"]
|
[index "changes_open"]
|
||||||
ramBufferSize = 60 m
|
ramBufferSize = 60 m
|
||||||
maxBufferedDocs = 3000
|
maxBufferedDocs = 3000
|
||||||
|
maxThreadCount = 5
|
||||||
|
maxMergeCount = 50
|
||||||
|
|
||||||
|
|
||||||
[index "changes_closed"]
|
[index "changes_closed"]
|
||||||
ramBufferSize = 20 m
|
ramBufferSize = 20 m
|
||||||
maxBufferedDocs = 500
|
maxBufferedDocs = 500
|
||||||
|
maxThreadCount = 10
|
||||||
|
maxMergeCount = 100
|
||||||
|
enableIOThrottle = false
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
[[elasticsearch]]
|
[[elasticsearch]]
|
||||||
|
14
WORKSPACE
14
WORKSPACE
@@ -65,7 +65,19 @@ http_file(
|
|||||||
|
|
||||||
load("@bazel_skylib//lib:versions.bzl", "versions")
|
load("@bazel_skylib//lib:versions.bzl", "versions")
|
||||||
|
|
||||||
versions.check(minimum_bazel_version = "0.26.1")
|
versions.check(minimum_bazel_version = "0.29.0")
|
||||||
|
|
||||||
|
# Rules Python
|
||||||
|
http_archive(
|
||||||
|
name = "rules_python",
|
||||||
|
sha256 = "b5bab4c47e863e0fbb77df4a40c45ca85f98f5a2826939181585644c9f31b97b",
|
||||||
|
strip_prefix = "rules_python-9d68f24659e8ce8b736590ba1e4418af06ec2552",
|
||||||
|
urls = ["https://github.com/bazelbuild/rules_python/archive/9d68f24659e8ce8b736590ba1e4418af06ec2552.tar.gz"],
|
||||||
|
)
|
||||||
|
|
||||||
|
load("@rules_python//python:repositories.bzl", "py_repositories")
|
||||||
|
|
||||||
|
py_repositories()
|
||||||
|
|
||||||
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
|
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary")
|
||||||
load("//tools/bzl:java.bzl", "java_library2")
|
load("//tools/bzl:java.bzl", "java_library2")
|
||||||
load("//tools/bzl:javadoc.bzl", "java_doc")
|
load("//tools/bzl:javadoc.bzl", "java_doc")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
RESOURCES = glob(["src/test/resources/**/*"])
|
RESOURCES = glob(["src/test/resources/**/*"])
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
acceptance_tests(
|
acceptance_tests(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
[acceptance_tests(
|
[acceptance_tests(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
acceptance_tests(
|
acceptance_tests(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
acceptance_tests(
|
acceptance_tests(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
SUBMIT_UTIL_SRCS = glob(["AbstractSubmit*.java"])
|
SUBMIT_UTIL_SRCS = glob(["AbstractSubmit*.java"])
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
acceptance_tests(
|
acceptance_tests(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
DEPS = [
|
DEPS = [
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
load("//gerrit-acceptance-tests:tests.bzl", "acceptance_tests")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "mem",
|
name = "mem",
|
||||||
srcs = glob(["src/main/java/**/*.java"]),
|
srcs = glob(["src/main/java/**/*.java"]),
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
load("//lib/jgit:jgit.bzl", "JGIT_DOC_URL")
|
load("//lib/jgit:jgit.bzl", "JGIT_DOC_URL")
|
||||||
load("//lib:guava.bzl", "GUAVA_DOC_URL")
|
load("//lib:guava.bzl", "GUAVA_DOC_URL")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
DEPS = [
|
DEPS = [
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "gwtdebug",
|
name = "gwtdebug",
|
||||||
srcs = glob(["src/main/java/**/*.java"]),
|
srcs = glob(["src/main/java/**/*.java"]),
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
load("//tools/bzl:java.bzl", "java_library2")
|
load("//tools/bzl:java.bzl", "java_library2")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:genrule2.bzl", "genrule2")
|
load("//tools/bzl:genrule2.bzl", "genrule2")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
# NOTE: GerritLauncher must be a single, self-contained class. Do not add any
|
# NOTE: GerritLauncher must be a single, self-contained class. Do not add any
|
||||||
# additional srcs or deps to this rule.
|
# additional srcs or deps to this rule.
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
QUERY_BUILDER = [
|
QUERY_BUILDER = [
|
||||||
"src/main/java/com/google/gerrit/lucene/QueryBuilder.java",
|
"src/main/java/com/google/gerrit/lucene/QueryBuilder.java",
|
||||||
]
|
]
|
||||||
|
@@ -21,6 +21,7 @@ import com.google.common.collect.ImmutableMap;
|
|||||||
import com.google.gerrit.server.config.ConfigUtil;
|
import com.google.gerrit.server.config.ConfigUtil;
|
||||||
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
||||||
import org.apache.lucene.analysis.util.CharArraySet;
|
import org.apache.lucene.analysis.util.CharArraySet;
|
||||||
|
import org.apache.lucene.index.ConcurrentMergeScheduler;
|
||||||
import org.apache.lucene.index.IndexWriterConfig;
|
import org.apache.lucene.index.IndexWriterConfig;
|
||||||
import org.apache.lucene.index.IndexWriterConfig.OpenMode;
|
import org.apache.lucene.index.IndexWriterConfig.OpenMode;
|
||||||
import org.eclipse.jgit.lib.Config;
|
import org.eclipse.jgit.lib.Config;
|
||||||
@@ -42,6 +43,21 @@ class GerritIndexWriterConfig {
|
|||||||
new IndexWriterConfig(analyzer)
|
new IndexWriterConfig(analyzer)
|
||||||
.setOpenMode(OpenMode.CREATE_OR_APPEND)
|
.setOpenMode(OpenMode.CREATE_OR_APPEND)
|
||||||
.setCommitOnClose(true);
|
.setCommitOnClose(true);
|
||||||
|
|
||||||
|
int maxMergeCount = cfg.getInt("index", name, "maxMergeCount", -1);
|
||||||
|
int maxThreadCount = cfg.getInt("index", name, "maxThreadCount", -1);
|
||||||
|
boolean enableAutoIOThrottle = cfg.getBoolean("index", name, "enableAutoIOThrottle", true);
|
||||||
|
if (maxMergeCount != -1 || maxThreadCount != -1 || !enableAutoIOThrottle) {
|
||||||
|
ConcurrentMergeScheduler mergeScheduler = new ConcurrentMergeScheduler();
|
||||||
|
if (maxMergeCount != -1 || maxThreadCount != -1) {
|
||||||
|
mergeScheduler.setMaxMergesAndThreads(maxMergeCount, maxThreadCount);
|
||||||
|
}
|
||||||
|
if (!enableAutoIOThrottle) {
|
||||||
|
mergeScheduler.disableAutoIOThrottle();
|
||||||
|
}
|
||||||
|
luceneConfig.setMergeScheduler(mergeScheduler);
|
||||||
|
}
|
||||||
|
|
||||||
double m = 1 << 20;
|
double m = 1 << 20;
|
||||||
luceneConfig.setRAMBufferSizeMB(
|
luceneConfig.setRAMBufferSizeMB(
|
||||||
cfg.getLong(
|
cfg.getLong(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
|
|
||||||
java_binary(
|
java_binary(
|
||||||
name = "main_bin",
|
name = "main_bin",
|
||||||
main_class = "Main",
|
main_class = "Main",
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
SRCS = glob(
|
SRCS = glob(
|
||||||
["src/main/java/**/*.java"],
|
["src/main/java/**/*.java"],
|
||||||
)
|
)
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "openid",
|
name = "openid",
|
||||||
srcs = glob(["src/main/java/**/*.java"]),
|
srcs = glob(["src/main/java/**/*.java"]),
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "commons-net",
|
name = "commons-net",
|
||||||
srcs = glob(["src/main/java/org/apache/commons/net/**/*.java"]),
|
srcs = glob(["src/main/java/org/apache/commons/net/**/*.java"]),
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library", "java_test")
|
||||||
load("//tools/bzl:genrule2.bzl", "genrule2")
|
load("//tools/bzl:genrule2.bzl", "genrule2")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
load("//tools/bzl:license.bzl", "license_test")
|
load("//tools/bzl:license.bzl", "license_test")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
load("//tools/bzl:javadoc.bzl", "java_doc")
|
load("//tools/bzl:javadoc.bzl", "java_doc")
|
||||||
|
|
||||||
PLUGIN_API = [
|
PLUGIN_API = [
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary")
|
||||||
load("//tools/bzl:java.bzl", "java_library2")
|
load("//tools/bzl:java.bzl", "java_library2")
|
||||||
load("//tools/bzl:javadoc.bzl", "java_doc")
|
load("//tools/bzl:javadoc.bzl", "java_doc")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
|
|
||||||
SRC = "src/main/java/com/google/gerrit/prettify/"
|
SRC = "src/main/java/com/google/gerrit/prettify/"
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:gwt.bzl", "gwt_module")
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//lib/prolog:prolog.bzl", "prolog_cafe_library")
|
load("//lib/prolog:prolog.bzl", "prolog_cafe_library")
|
||||||
load("//tools/bzl:javadoc.bzl", "java_doc")
|
load("//tools/bzl:javadoc.bzl", "java_doc")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
SRCS = glob(["src/main/java/**/*.java"])
|
SRCS = glob(["src/main/java/**/*.java"])
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "test_util",
|
name = "test_util",
|
||||||
testonly = 1,
|
testonly = 1,
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "cli",
|
name = "cli",
|
||||||
srcs = glob(["src/main/java/**/*.java"]),
|
srcs = glob(["src/main/java/**/*.java"]),
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:junit.bzl", "junit_tests")
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "ssl",
|
name = "ssl",
|
||||||
srcs = glob(["src/main/java/**/*.java"]),
|
srcs = glob(["src/main/java/**/*.java"]),
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_import", "java_library")
|
||||||
load("//tools/bzl:genrule2.bzl", "genrule2")
|
load("//tools/bzl:genrule2.bzl", "genrule2")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
exports_files(glob([
|
exports_files(glob([
|
||||||
"LICENSE-*",
|
"LICENSE-*",
|
||||||
]))
|
]))
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
|
|
||||||
package(default_visibility = ["//gerrit-index:__pkg__"])
|
package(default_visibility = ["//gerrit-index:__pkg__"])
|
||||||
|
|
||||||
[java_library(
|
[java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
|
|
||||||
java_binary(
|
java_binary(
|
||||||
name = "asciidoc",
|
name = "asciidoc",
|
||||||
main_class = "AsciiDoctor",
|
main_class = "AsciiDoctor",
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
|
||||||
|
|
||||||
java_plugin(
|
java_plugin(
|
||||||
name = "auto-annotation-plugin",
|
name = "auto-annotation-plugin",
|
||||||
processor_class = "com.google.auto.value.processor.AutoAnnotationProcessor",
|
processor_class = "com.google.auto.value.processor.AutoAnnotationProcessor",
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "bcprov",
|
name = "bcprov",
|
||||||
data = ["//lib:LICENSE-bouncycastle"],
|
data = ["//lib:LICENSE-bouncycastle"],
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_import", "java_library")
|
||||||
load("//lib/codemirror:cm.bzl", "pkg_cm")
|
load("//lib/codemirror:cm.bzl", "pkg_cm")
|
||||||
|
|
||||||
# This library is only used to insert a license statement into
|
# This library is only used to insert a license statement into
|
||||||
@@ -9,3 +10,17 @@ java_library(
|
|||||||
)
|
)
|
||||||
|
|
||||||
pkg_cm()
|
pkg_cm()
|
||||||
|
|
||||||
|
LICENSE = "//lib:LICENSE-codemirror-original"
|
||||||
|
|
||||||
|
LICENSE_MINIFIED = "//lib:LICENSE-codemirror-minified"
|
||||||
|
|
||||||
|
[java_import(
|
||||||
|
name = "codemirror" + suffix,
|
||||||
|
data = [license],
|
||||||
|
jars = [":jar%s" % suffix],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
) for suffix, license in [
|
||||||
|
("", LICENSE),
|
||||||
|
("_r", LICENSE_MINIFIED),
|
||||||
|
]]
|
||||||
|
@@ -362,10 +362,3 @@ def pkg_cm():
|
|||||||
],
|
],
|
||||||
outs = ["codemirror%s.jar" % suffix],
|
outs = ["codemirror%s.jar" % suffix],
|
||||||
)
|
)
|
||||||
|
|
||||||
native.java_import(
|
|
||||||
name = "codemirror" + suffix,
|
|
||||||
jars = [":jar%s" % suffix],
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
data = [license],
|
|
||||||
)
|
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "dropwizard-core",
|
name = "dropwizard-core",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "easymock",
|
name = "easymock",
|
||||||
data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
|
data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "guice",
|
name = "guice",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
[java_library(
|
[java_library(
|
||||||
name = n,
|
name = n,
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "jackson-core",
|
name = "jackson-core",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "servlet",
|
name = "servlet",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
load("//lib/jgit:jgit.bzl", "jgit_dep")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "joda-time",
|
name = "joda-time",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "jsoup",
|
name = "jsoup",
|
||||||
data = ["//lib:LICENSE-jsoup"],
|
data = ["//lib:LICENSE-jsoup"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "api",
|
name = "api",
|
||||||
data = ["//lib:LICENSE-slf4j"],
|
data = ["//lib:LICENSE-slf4j"],
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:maven.bzl", "merge_maven_jars")
|
load("//tools/bzl:maven.bzl", "merge_maven_jars")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "mail",
|
name = "mail",
|
||||||
data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
|
data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "core",
|
name = "core",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "sshd",
|
name = "sshd",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "consumer",
|
name = "consumer",
|
||||||
data = ["//lib:LICENSE-Apache2.0"],
|
data = ["//lib:LICENSE-Apache2.0"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "ow2-asm",
|
name = "ow2-asm",
|
||||||
data = ["//lib:LICENSE-ow2"],
|
data = ["//lib:LICENSE-ow2"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "powermock-module-junit4",
|
name = "powermock-module-junit4",
|
||||||
data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
|
data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "runtime",
|
name = "runtime",
|
||||||
data = ["//lib:LICENSE-prologcafe"],
|
data = ["//lib:LICENSE-prologcafe"],
|
||||||
|
@@ -12,6 +12,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
def prolog_cafe_library(
|
def prolog_cafe_library(
|
||||||
name,
|
name,
|
||||||
srcs,
|
srcs,
|
||||||
@@ -26,7 +28,7 @@ def prolog_cafe_library(
|
|||||||
tools = ["//lib/prolog:compiler-bin"],
|
tools = ["//lib/prolog:compiler-bin"],
|
||||||
outs = [name + ".srcjar"],
|
outs = [name + ".srcjar"],
|
||||||
)
|
)
|
||||||
native.java_library(
|
java_library(
|
||||||
name = name,
|
name = name,
|
||||||
srcs = [":" + name + "__pl2j"],
|
srcs = [":" + name + "__pl2j"],
|
||||||
deps = ["//lib/prolog:runtime-neverlink"] + deps,
|
deps = ["//lib/prolog:runtime-neverlink"] + deps,
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "duct-tape",
|
name = "duct-tape",
|
||||||
testonly = 1,
|
testonly = 1,
|
||||||
|
Submodule plugins/replication updated: 9b4b786ffd...89c45893a3
@@ -1,3 +1,5 @@
|
|||||||
|
load("@rules_python//python:defs.bzl", "py_binary")
|
||||||
|
load("@rules_java//java:defs.bzl", "java_package_configuration")
|
||||||
load(
|
load(
|
||||||
"@bazel_tools//tools/jdk:default_java_toolchain.bzl",
|
"@bazel_tools//tools/jdk:default_java_toolchain.bzl",
|
||||||
"JDK9_JVM_OPTS",
|
"JDK9_JVM_OPTS",
|
||||||
|
@@ -15,11 +15,13 @@
|
|||||||
# Syntactic sugar for native java_library() rule:
|
# Syntactic sugar for native java_library() rule:
|
||||||
# accept exported_deps attributes
|
# accept exported_deps attributes
|
||||||
|
|
||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
|
|
||||||
def java_library2(deps = [], exported_deps = [], exports = [], **kwargs):
|
def java_library2(deps = [], exported_deps = [], exports = [], **kwargs):
|
||||||
if exported_deps:
|
if exported_deps:
|
||||||
deps = deps + exported_deps
|
deps = deps + exported_deps
|
||||||
exports = exports + exported_deps
|
exports = exports + exported_deps
|
||||||
native.java_library(
|
java_library(
|
||||||
deps = deps,
|
deps = deps,
|
||||||
exports = exports,
|
exports = exports,
|
||||||
**kwargs
|
**kwargs
|
||||||
|
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
# See https://github.com/bazelbuild/bazel/issues/1017 for background.
|
# See https://github.com/bazelbuild/bazel/issues/1017 for background.
|
||||||
|
|
||||||
|
load("@rules_java//java:defs.bzl", "java_test")
|
||||||
|
|
||||||
_OUTPUT = """import org.junit.runners.Suite;
|
_OUTPUT = """import org.junit.runners.Suite;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
@@ -71,7 +73,7 @@ def junit_tests(name, srcs, **kwargs):
|
|||||||
srcs = srcs,
|
srcs = srcs,
|
||||||
outname = s_name,
|
outname = s_name,
|
||||||
)
|
)
|
||||||
native.java_test(
|
java_test(
|
||||||
name = name,
|
name = name,
|
||||||
test_class = s_name,
|
test_class = s_name,
|
||||||
srcs = srcs + [":" + s_name],
|
srcs = srcs + [":" + s_name],
|
||||||
|
@@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
# Merge maven files
|
# Merge maven files
|
||||||
|
|
||||||
|
load("@rules_java//java:defs.bzl", "java_import")
|
||||||
|
|
||||||
def cmd(jars):
|
def cmd(jars):
|
||||||
return ("$(location //tools:merge_jars) $@ " +
|
return ("$(location //tools:merge_jars) $@ " +
|
||||||
" ".join(["$(location %s)" % j for j in jars]))
|
" ".join(["$(location %s)" % j for j in jars]))
|
||||||
@@ -25,7 +27,7 @@ def merge_maven_jars(name, srcs, **kwargs):
|
|||||||
tools = srcs + ["//tools:merge_jars"],
|
tools = srcs + ["//tools:merge_jars"],
|
||||||
outs = ["%s__merged.jar" % name],
|
outs = ["%s__merged.jar" % name],
|
||||||
)
|
)
|
||||||
native.java_import(
|
java_import(
|
||||||
name = name,
|
name = name,
|
||||||
jars = [":%s__merged_bin" % name],
|
jars = [":%s__merged_bin" % name],
|
||||||
**kwargs
|
**kwargs
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
||||||
load("//tools/bzl:genrule2.bzl", "genrule2")
|
load("//tools/bzl:genrule2.bzl", "genrule2")
|
||||||
load(
|
load(
|
||||||
"//tools/bzl:gwt.bzl",
|
"//tools/bzl:gwt.bzl",
|
||||||
@@ -31,7 +32,7 @@ def gerrit_plugin(
|
|||||||
dir_name = None,
|
dir_name = None,
|
||||||
target_suffix = "",
|
target_suffix = "",
|
||||||
**kwargs):
|
**kwargs):
|
||||||
native.java_library(
|
java_library(
|
||||||
name = name + "__plugin",
|
name = name + "__plugin",
|
||||||
srcs = srcs,
|
srcs = srcs,
|
||||||
resources = resources,
|
resources = resources,
|
||||||
@@ -47,7 +48,7 @@ def gerrit_plugin(
|
|||||||
if not dir_name:
|
if not dir_name:
|
||||||
dir_name = name
|
dir_name = name
|
||||||
|
|
||||||
native.java_binary(
|
java_binary(
|
||||||
name = "%s__non_stamped" % name,
|
name = "%s__non_stamped" % name,
|
||||||
deploy_manifest_lines = manifest_entries + ["Gerrit-ApiType: plugin"],
|
deploy_manifest_lines = manifest_entries + ["Gerrit-ApiType: plugin"],
|
||||||
main_class = "Dummy",
|
main_class = "Dummy",
|
||||||
@@ -59,7 +60,7 @@ def gerrit_plugin(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if gwt_module:
|
if gwt_module:
|
||||||
native.java_library(
|
java_library(
|
||||||
name = name + "__gwt_module",
|
name = name + "__gwt_module",
|
||||||
resources = depset(srcs + resources).to_list(),
|
resources = depset(srcs + resources).to_list(),
|
||||||
runtime_deps = deps + GWT_PLUGIN_DEPS,
|
runtime_deps = deps + GWT_PLUGIN_DEPS,
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
load("@rules_java//java:defs.bzl", "java_library")
|
||||||
load("//tools/bzl:classpath.bzl", "classpath_collector")
|
load("//tools/bzl:classpath.bzl", "classpath_collector")
|
||||||
load("//tools/bzl:pkg_war.bzl", "LIBS", "PGMLIBS")
|
load("//tools/bzl:pkg_war.bzl", "LIBS", "PGMLIBS")
|
||||||
load(
|
load(
|
||||||
|
Reference in New Issue
Block a user