Skip to content

Commit 12e80ba

Browse files
committed
Publish separate scip-java-proto artifact with scip.proto generated classes
Fixes #522 Previously, it was necessary to generate classes from the scip.proto source if you wanted to write Java tooling that consumes SCIP. This commit reorganizes the build so that we publish a new com.sourcegraph:scip-java-proto artifact that only includes the generated protobuf classes from scip.proto. Note that we don't guarantee binary compatibility for public classes in this module.
1 parent 7aafce0 commit 12e80ba

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

build.sbt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ lazy val plugin = project
126126
)
127127
.dependsOn(semanticdb)
128128

129-
lazy val scip = project
130-
.in(file("scip-semanticdb"))
129+
lazy val scipProto = project
130+
.in(file("scip-java-proto"))
131131
.settings(
132-
moduleName := "scip-semanticdb",
132+
moduleName := "scip-java-proto",
133133
javaToolchainVersion := "8",
134134
javaOnlySettings,
135135
libraryDependencies +=
@@ -138,7 +138,15 @@ lazy val scip = project
138138
Seq(PB.gens.java(V.protobuf) -> (Compile / sourceManaged).value),
139139
Compile / PB.protocOptions := Seq("--experimental_allow_proto3_optional")
140140
)
141-
.dependsOn(semanticdb)
141+
142+
lazy val scip = project
143+
.in(file("scip-semanticdb"))
144+
.settings(
145+
moduleName := "scip-semanticdb",
146+
javaToolchainVersion := "8",
147+
javaOnlySettings
148+
)
149+
.dependsOn(semanticdb, scipProto)
142150

143151
lazy val cli = project
144152
.in(file("scip-java"))

0 commit comments

Comments
 (0)