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
144144  .settings(
145145    moduleName :=  " scip-semanticdb"  ,
146146    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"  )
148151  )
149152  .dependsOn(semanticdb, scipProto)
150153
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(
1818    srcs  =  glob (["src/main/java/**/*.java" ]),
1919    deps  =  [
2020        ":all_java_proto" ,
21+         "//scip-java-proto/src/main/protobuf:scip_java_proto" ,
2122        "//semanticdb-java" ,
2223        "//semanticdb-java/src/main/protobuf:semanticdb_java_proto" ,
2324        "@maven//:com_google_protobuf_protobuf_java" ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments