Skip to content

Commit

Permalink
feat: add com.google.protobuf (#15)
Browse files Browse the repository at this point in the history
- chore: add `com.google.protobuf` module
- chore: add ci + local build setup for bazel
- chore: add `modular-proto` sample
- chore: poms for protobuf java libraries
- chore: update dependency graph
- chore: update exported version catalog
- chore: update internal version catalog
- chore: update readme with new library coordinates/modules
- chore: sync repository

Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon authored Mar 15, 2024
1 parent 96d7276 commit ebab92d
Show file tree
Hide file tree
Showing 360 changed files with 6,889 additions and 138 deletions.
Empty file removed .github/.gitkeep
Empty file.
7 changes: 6 additions & 1 deletion .github/workflows/ci.build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: "Build & Test"

permissions:
contents: read

jobs:
build:
name: "Build Repository"
Expand All @@ -32,13 +32,18 @@ jobs:
with:
java-version: '21'
distribution: 'zulu'
- name: "Setup: Bazelisk"
uses: bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3.0.0
- name: "Setup: Cache"
uses: actions/cache@v4
with:
path: |
jdk
annotation-tools
.m2
~/.cache/bazel
key: jpms-attic-v1-${{ runner.os }}
- name: "Setup: Dev Tooling"
run: make dev
- name: "Build & Test Repository"
run: make TESTS=${{ inputs.tests && 'yes' || 'no' }} SIGNING=no JAVADOC=no SNAPSHOT=yes
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.dev
/.m2
/jdk
/target
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "reactive-streams"]
path = org.reactivestreams
url = [email protected]:sgammon/reactive-streams-jvm.git
[submodule "protobuf"]
path = com.google.protobuf
url = [email protected]:sgammon/protobuf.git
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,21 @@ JPMS Attic:
all Build all targets and setup the repository.
checkerframework Build Checker Framework.
clean Clean all built targets.
distclean Clean downloaded material and local dev tools.
errorprone Build the Error Prone Compiler.
forceclean DANGEROUS: Wipe all untracked files and other changes; completely reset.
guava Build Guava and all requisite dependencies.
help Show this help text ('make help').
j2objc Build the J2ObjC annotations.
protobuf Build Protocol Buffers.
reactivestreams Build Reactive Streams.
repository Build the repository layout.
reset Reset the codebase as well as performing a `distclean`.
samples Build samples.
setup Setup local codebase features; performs first-run stuff.
test Build and run integration and smoke tests.
tools Build ancillary libraries.
update-modules Update all sub-modules.
```

**Switches and their defaults:**
Expand All @@ -47,6 +54,14 @@ JAVADOC ?= no # build javadoc outputs for each library as we go
SNAPSHOT ?= yes # build snapshot versions; pass `no` to build live versions
```
**Setting up your local environment:**
```shell
make setup dev
```

> This command will setup local tooling and clone all submodules.
## Making changes

Generally, when making changes, make sure to add tests and samples, where applicable. New libraries will need build steps.
Expand Down
Loading

0 comments on commit ebab92d

Please sign in to comment.