In dissolving top level directory series we lost this source package and as the consequence, GWT enabled gerrit plugins cannot be built in standalone build mode. Test Plan: * Build the gerrit-plugin-gwtui artifact: $ bazel build gerrit-plugin-gwtui/gwtui-api_deploy.jar * Verify that the sources for extensions package are included: $ unzip -t bazel-bin/gerrit-plugin-gwtui/gwtui-api_deploy.jar | grep AccountFieldName.java testing: com/google/gerrit/extensions/client/AccountFieldName.java OK Change-Id: I3c80723b470b5ccf96ecd7c9edb75dadc0630d75
		
			
				
	
	
		
			85 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
package(default_visibility = ["//visibility:public"])
 | 
						|
 | 
						|
load("//tools/bzl:java.bzl", "java_library2")
 | 
						|
 | 
						|
SRCS = glob(["src/main/java/com/google/gerrit/**/*.java"])
 | 
						|
 | 
						|
DEPS = ["//lib/gwt:user-neverlink"]
 | 
						|
 | 
						|
java_binary(
 | 
						|
    name = "gwtui-api",
 | 
						|
    main_class = "Dummy",
 | 
						|
    runtime_deps = [
 | 
						|
        ":gwtui-api-lib",
 | 
						|
        "//gerrit-gwtui-common:client-lib",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
java_library2(
 | 
						|
    name = "gwtui-api-lib",
 | 
						|
    srcs = SRCS,
 | 
						|
    exported_deps = ["//gerrit-gwtui-common:client-lib"],
 | 
						|
    resources = glob(["src/main/**/*"]),
 | 
						|
    deps = DEPS + [
 | 
						|
        "//java/org/eclipse/jgit:libclient-src.jar",
 | 
						|
        "//java/org/eclipse/jgit:libEdit-src.jar",
 | 
						|
        "//java/com/google/gerrit/common:libclient-src.jar",
 | 
						|
        "//java/com/google/gerrit/extensions:libapi-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/clippy:libclippy-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/globalkey:libglobalkey-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/progress:libprogress-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/safehtml:libsafehtml-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/user:libagent-src.jar",
 | 
						|
        "//gerrit-gwtui-common:libclient-src.jar",
 | 
						|
        "//java/com/google/gerrit/prettify:libclient-src.jar",
 | 
						|
        "//java/com/google/gerrit/reviewdb:libclient-src.jar",
 | 
						|
        "//lib/gwt:dev-neverlink",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
java_library2(
 | 
						|
    name = "gwtui-api-lib-neverlink",
 | 
						|
    srcs = SRCS,
 | 
						|
    exported_deps = ["//gerrit-gwtui-common:client-lib"],
 | 
						|
    neverlink = 1,  # we want this to be exported deps
 | 
						|
    resources = glob(["src/main/**/*"]),
 | 
						|
    deps = DEPS + ["//lib/gwt:dev"],
 | 
						|
)
 | 
						|
 | 
						|
java_binary(
 | 
						|
    name = "gwtui-api-source",
 | 
						|
    main_class = "Dummy",
 | 
						|
    runtime_deps = [
 | 
						|
        ":libgwtui-api-lib-src.jar",
 | 
						|
        "//gerrit-gwtui-common:libclient-lib-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/clippy:libclippy-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/globalkey:libglobalkey-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/progress:libprogress-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/safehtml:libsafehtml-src.jar",
 | 
						|
        "//java/com/google/gwtexpui/user:libagent-src.jar",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
load("//tools/bzl:javadoc.bzl", "java_doc")
 | 
						|
 | 
						|
java_doc(
 | 
						|
    name = "gwtui-api-javadoc",
 | 
						|
    libs = DEPS + [
 | 
						|
        ":gwtui-api-lib",
 | 
						|
        "//lib:gwtjsonrpc",
 | 
						|
        "//lib:gwtorm_client",
 | 
						|
        "//lib/gwt:dev",
 | 
						|
        "//gerrit-gwtui-common:client-lib",
 | 
						|
        "//java/com/google/gerrit/common:client",
 | 
						|
        "//java/com/google/gerrit/reviewdb:client",
 | 
						|
    ],
 | 
						|
    pkgs = [
 | 
						|
        "com.google.gerrit.plugin",
 | 
						|
        "com.google.gwtexpui.clippy",
 | 
						|
        "com.google.gwtexpui.globalkey",
 | 
						|
        "com.google.gwtexpui.safehtml",
 | 
						|
        "com.google.gwtexpui.user",
 | 
						|
    ],
 | 
						|
    title = "Gerrit Review GWT Extension API Documentation",
 | 
						|
)
 |