Running buildifier at the head of master with -lint=warn shows the warning: native-proto: Function "proto_library" is not global anymore and needs to be loaded from "@rules_proto//proto:defs.bzl" Add rules_proto in the WORKSPACE and use it in the proto BUILD. Change-Id: I54363f08cab3a184b6b3cd1ff6baaa38824aa9a3
		
			
				
	
	
		
			35 lines
		
	
	
		
			796 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			796 B
		
	
	
	
		
			Python
		
	
	
	
	
	
load("@rules_java//java:defs.bzl", "java_proto_library")
 | 
						|
load("@rules_proto//proto:defs.bzl", "proto_library")
 | 
						|
 | 
						|
proto_library(
 | 
						|
    name = "cache_proto",
 | 
						|
    srcs = ["cache.proto"],
 | 
						|
)
 | 
						|
 | 
						|
java_proto_library(
 | 
						|
    name = "cache_java_proto",
 | 
						|
    visibility = ["//visibility:public"],
 | 
						|
    deps = [":cache_proto"],
 | 
						|
)
 | 
						|
 | 
						|
genrule(
 | 
						|
    name = "gen_reviewdb_proto",
 | 
						|
    outs = ["reviewdb.proto"],
 | 
						|
    cmd = "$(location //java/com/google/gerrit/proto:ProtoGen) -o $@",
 | 
						|
    tools = ["//java/com/google/gerrit/proto:ProtoGen"],
 | 
						|
)
 | 
						|
 | 
						|
proto_library(
 | 
						|
    name = "reviewdb_proto",
 | 
						|
    srcs = [":reviewdb.proto"],
 | 
						|
)
 | 
						|
 | 
						|
java_proto_library(
 | 
						|
    name = "reviewdb_java_proto",
 | 
						|
    visibility = [
 | 
						|
        "//javatests/com/google/gerrit/proto:__pkg__",
 | 
						|
        "//tools/eclipse:__pkg__",
 | 
						|
    ],
 | 
						|
    deps = [":reviewdb_proto"],
 | 
						|
)
 |