File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
scip-java-proto/src/main/protobuf Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,10 @@ lazy val scip = project
144
144
.settings(
145
145
moduleName := " scip-semanticdb" ,
146
146
javaToolchainVersion := " 8" ,
147
- javaOnlySettings
147
+ javaOnlySettings,
148
+ (Compile / PB .targets) :=
149
+ Seq (PB .gens.java(V .protobuf) -> (Compile / sourceManaged).value),
150
+ Compile / PB .protocOptions := Seq (" --experimental_allow_proto3_optional" )
148
151
)
149
152
.dependsOn(semanticdb, scipProto)
150
153
Original file line number Diff line number Diff line change
1
+ load ("@rules_java//java:defs.bzl" , "java_proto_library" )
2
+ load ("@rules_proto//proto:defs.bzl" , "proto_library" )
3
+
4
+ package (
5
+ default_visibility = ["//visibility:public" ],
6
+ )
7
+
8
+ java_proto_library (
9
+ name = "scip_java_proto" ,
10
+ deps = [":scip_proto" ],
11
+ )
12
+
13
+ proto_library (
14
+ name = "scip_proto" ,
15
+ srcs = ["scip.proto" ],
16
+ )
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ java_library(
18
18
srcs = glob (["src/main/java/**/*.java" ]),
19
19
deps = [
20
20
":all_java_proto" ,
21
+ "//scip-java-proto/src/main/protobuf:scip_java_proto" ,
21
22
"//semanticdb-java" ,
22
23
"//semanticdb-java/src/main/protobuf:semanticdb_java_proto" ,
23
24
"@maven//:com_google_protobuf_protobuf_java" ,
You can’t perform that action at this time.
0 commit comments