Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to Bazel build #2612

Draft
wants to merge 56 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
0ab5193
first pass
lyao-77 Apr 13, 2023
b02f235
add BUILD files for each module
lyao-77 Apr 13, 2023
9afc7bb
fixed build
lyao-77 Apr 15, 2023
ad41162
some progress
lyao-77 Apr 17, 2023
010af46
revert avsc change
lyao-77 Apr 17, 2023
13178fb
add java test back
lyao-77 Apr 17, 2023
cbb3d68
add bazelbersion for bazelisk
lyao-77 Apr 17, 2023
085be41
add proto build for client-encryption
lyao-77 Apr 17, 2023
d92ee64
small fix on path
lyao-77 Apr 17, 2023
47a7168
fix some modules
lyao-77 Apr 17, 2023
a2f9a70
some fix
lyao-77 Apr 20, 2023
39b7eea
small fix for client
lyao-77 Apr 20, 2023
cfc3009
some fix
lyao-77 Apr 24, 2023
a9de66c
some progress
lyao-77 Apr 27, 2023
ec73673
fix proto file deps
lyao-77 Apr 28, 2023
bcf72e6
some more progress
lyao-77 May 1, 2023
4851422
Replace use of `com_google_protobuf` with `rules_proto`
May 1, 2023
7c2e2ca
debug
lyao-77 May 1, 2023
9684754
debug
lyao-77 May 1, 2023
b91fbd7
rename workspace
lyao-77 May 1, 2023
1b587c5
some fix
lyao-77 May 2, 2023
eb485cc
use java_library from rules_jvm
lyao-77 May 2, 2023
4aaa4db
Get protobuf-serializer tests passing
vinnybod May 2, 2023
6e6dc47
linters config
lyao-77 May 2, 2023
da8fdba
fix the reference in RestApiSerializerTest
vinnybod May 2, 2023
18b4a61
fix proto import path with prefix and fix test failures
lyao-77 May 3, 2023
b25fd06
fix test failures for schema-rules and protobuf-provider
lyao-77 May 3, 2023
ad65b56
fix symlink path
lyao-77 May 3, 2023
9903229
more test fix
lyao-77 May 4, 2023
3e02911
fix core
lyao-77 May 4, 2023
2e645d3
initial swagger openapi spec generation
vinnybod May 1, 2023
78bd2c4
get the file copy working
vinnybod May 1, 2023
49acac8
temp remove diff_test
vinnybod May 1, 2023
e267b62
some cleanup, support openapi.yaml
vinnybod May 3, 2023
2a05ed4
more code cleanup
vinnybod May 3, 2023
2e9acee
fix tests and run buildifier
vinnybod May 4, 2023
0f61a93
Merge branch 'bazel_build' into openapi-gen
vinnybod May 4, 2023
adf4bad
remove json swagger
vinnybod May 4, 2023
feff0b9
move the openapi generation to the core module
vinnybod May 4, 2023
3ef1c98
all tests passed including linters
lyao-77 May 5, 2023
268bff6
new line and update spotbugs binary
lyao-77 May 5, 2023
b12d715
remove local rule
vinnybod May 5, 2023
f84a11b
fix spec
vinnybod May 5, 2023
076ff7d
Merge branch 'bazel_build' into openapi-gen
vinnybod May 5, 2023
b63e2e8
add .bazel suffix back for workspace
lyao-77 May 5, 2023
254b81b
Merge branch 'bazel_build' into openapi-gen
vinnybod May 5, 2023
b4fb127
use swagger_core_version
vinnybod May 6, 2023
0874017
Temp commit
lyao-77 May 9, 2023
3392b9e
update confluent rules to 0.0.5
vinnybod May 15, 2023
8f69652
use "assemble_package" macro
lyao-77 May 17, 2023
f39b344
support minimal maven usage to build the kafka-schema-registry-maven-…
vinnybod May 19, 2023
65bd57c
merge
lyao-77 Jul 19, 2023
563eb2b
use glob and fix some issues
lyao-77 Jul 19, 2023
c4396b2
Revert "use glob and fix some issues"
lyao-77 Jul 19, 2023
edae8ec
use glob
lyao-77 Jul 19, 2023
cf993c0
resolve conflict
lyao-77 Jul 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build --java_language_version=11
build --java_runtime_version=remotejdk_11
build --protocopt=--experimental_allow_proto3_optional
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0.0
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ target/
# Log file from schema registry daemon
logs/
nohup.out

# Ignore all bazel-* symlinks. There is no full list since this can change
# based on the name of the directory bazel is cloned into.
/bazel-*

# Directories for the Bazel IntelliJ plugin containing the generated
# IntelliJ project files and plugin configuration. Seperate directories are
# for the IntelliJ, Android Studio and CLion versions of the plugin.
/.ijwb/
/.aswb/
/.clwb/
46 changes: 46 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_files", "pkg_mklink")

# gazelle:prefix github.com/your/project
# gazelle:java_maven_install_file maven_install.json

#gazelle(
# name = "gazelle",
# gazelle = ":gazelle_bin",
#)
#
#gazelle_binary(
# name = "gazelle_bin",
# languages = DEFAULT_LANGUAGES + [
# "@contrib_rules_jvm//java/gazelle",
# ],
#)

pkg_files(
name = "package_docs",
srcs = [
"version.txt",
"README.md",
"LICENSE",
"LICENSE-ConfluentCommunity",
],
visibility = ["//:__subpackages__"],
)

pkg_files(
name = "notices",
srcs = glob(["notices/**/*"]),
visibility = ["//:__subpackages__"],
)

pkg_files(
name = "licenses",
srcs = glob(["licenses/**/*"]),
visibility = ["//:__subpackages__"],
)

pkg_files(
name = "config",
srcs = glob(["config/**/*"]),
visibility = ["//:__subpackages__"],
)
11 changes: 11 additions & 0 deletions BUILD.google
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
proto_library(
name = 'date_proto',
srcs = ['google/type/date.proto'],
visibility = ['//visibility:public']
)

proto_library(
name = 'timeofday_proto',
srcs = ['google/type/timeofday.proto'],
visibility = ['//visibility:public']
)
Loading