Commit a81080b
committed
Add Java and Kotlin protobuf bindings
Adds two new bindings under bindings/java and bindings/kotlin, generated
by protoc's built-in --java_out and --kotlin_out plugins (no extra
plugin packages required beyond pkgs.protobuf).
* buf.gen.yaml is migrated to v2 syntax, which lets us use
protoc_builtin: java/kotlin. Existing v1 entries are converted to
the equivalent local: <binary> form.
* flake.nix gains pkgs.protobuf in proto-generate.runtimeInputs so
protoc is on PATH for the built-in generators.
* checks.nix gains java-bindings and kotlin-bindings checks built via
pkgs.maven.buildMavenPackage, plus a small extractPomVersion helper
that asserts pom.xml versions match the project version (matching
the pattern used for rust/haskell/typescript bindings).
* Each binding ships its own pom.xml so consumers can mvn install /
publish independently. The Kotlin DSL extensions reference the
underlying Java message classes, so the Java sources are also
generated into bindings/kotlin/src/main/java to keep that module
self-contained for the in-tree Maven build.
* The new checks are picked up automatically by .github/workflows/
nix-checks.yaml since it auto-discovers checks via builtins.attrNames.1 parent 212ec4b commit a81080b
22 files changed
Lines changed: 50263 additions & 8 deletions
File tree
- bindings
- java
- src/main/java/scip
- kotlin
- src/main
- java/scip
- kotlin/scip
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments