Bringing back maven build (#3130)
authorAndrey Yegorov <8622884+dlg99@users.noreply.github.com>
Thu, 24 Mar 2022 16:15:09 +0000 (09:15 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Mar 2022 16:15:09 +0000 (17:15 +0100)
commit2fe585c00ac94f8d7430dd436edd8745d37d8b89
tree37a7362cde12cc35307b3cc4c228a01b3f0e9e84
parent9b783ef8d8dcdfdc21a56f4afb873447517b5aaf
Bringing back maven build (#3130)

* Revert "[build] remove Maven POM files (#3009)"

This reverts commit e089b51ab5e1cf5f061c81463d27f33a21198271.

* rxjava: add maven dependency

(cherry picked from commit ac73541ce79953141a08c60642cd39c7984ade1e)

* Bring guava to the same version as gradle

* ignore deprecation warnings in tests

* mockito-inline, as in gradle + suppress warnings

* suppressed warning

* Exclude site3/ from RAT check

* CI to use (mostly) maven

* OWASP check with maven

* Up'd versions to match gradle, corrected license files: looks like gradle build didn't force versions consistently

* Removed current-version-image to match https://github.com/apache/bookkeeper/pull/3027

* Shading patetrn to match gradle

* Fixed/suppressed CVEs

* Attempt to fix failing tests in CompactionByEntriesWithMetadataCacheTest

Co-authored-by: lushiji <lushiji@didiglobal.com>
140 files changed:
.github/workflows/bookie-tests.yml
.github/workflows/client-tests.yml
.github/workflows/compatibility-check-java11.yml
.github/workflows/compatibility-check-java8.yml
.github/workflows/gradle-build.yml [new file with mode: 0644]
.github/workflows/integration-tests.yml
.github/workflows/owasp-dep-check.yml
.github/workflows/pr-validation.yml
.github/workflows/remaining-tests.yml
.github/workflows/replication-tests.yml
.github/workflows/stream-tests.yml
.github/workflows/tls-tests.yml
bin/bookkeeper_gradle [new file with mode: 0755]
bin/common.sh
bin/common_gradle.sh [new file with mode: 0755]
bookkeeper-benchmark/bin/benchmark
bookkeeper-benchmark/build.gradle
bookkeeper-benchmark/pom.xml [new file with mode: 0644]
bookkeeper-common-allocator/pom.xml [new file with mode: 0644]
bookkeeper-common/pom.xml [new file with mode: 0644]
bookkeeper-dist/all/pom.xml [new file with mode: 0644]
bookkeeper-dist/bkctl/pom.xml [new file with mode: 0644]
bookkeeper-dist/build.gradle
bookkeeper-dist/pom.xml [new file with mode: 0644]
bookkeeper-dist/server/pom.xml [new file with mode: 0644]
bookkeeper-dist/src/assemble/src.xml
bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt
bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt
bookkeeper-http/http-server/pom.xml [new file with mode: 0644]
bookkeeper-http/pom.xml [new file with mode: 0644]
bookkeeper-http/servlet-http-server/pom.xml [new file with mode: 0644]
bookkeeper-http/vertx-http-server/pom.xml [new file with mode: 0644]
bookkeeper-proto/pom.xml [new file with mode: 0644]
bookkeeper-server/build.gradle
bookkeeper-server/pom.xml [new file with mode: 0644]
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/CompactionTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/GarbageCollectorThreadTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/datainteg/CookieValidationTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/datainteg/DataIntegrityCheckTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/datainteg/EntryCopierTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/util/collections/ConcurrentLongHashSetTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/util/collections/ConcurrentLongLongHashMapTest.java
bookkeeper-server/src/test/java/org/apache/bookkeeper/util/collections/ConcurrentLongLongPairHashMapTest.java
bookkeeper-stats-providers/codahale-metrics-provider/pom.xml [new file with mode: 0644]
bookkeeper-stats-providers/pom.xml [new file with mode: 0644]
bookkeeper-stats-providers/prometheus-metrics-provider/pom.xml [new file with mode: 0644]
bookkeeper-stats/pom.xml [new file with mode: 0644]
build.gradle
buildtools/pom.xml [new file with mode: 0644]
circe-checksum/pom.xml [new file with mode: 0644]
cpu-affinity/pom.xml [new file with mode: 0644]
dependencies.gradle
dev/check-all-licenses
dev/check-all-licenses-gradle [new file with mode: 0755]
dev/common.sh
dev/docker/ci.sh [new file with mode: 0755]
dev/update-snapshot-version.sh [new file with mode: 0755]
metadata-drivers/etcd/pom.xml [new file with mode: 0644]
metadata-drivers/pom.xml [new file with mode: 0644]
microbenchmarks/pom.xml [new file with mode: 0644]
pom.xml [new file with mode: 0644]
settings.gradle
shaded/bookkeeper-server-shaded/pom.xml [new file with mode: 0644]
shaded/bookkeeper-server-tests-shaded/pom.xml [new file with mode: 0644]
shaded/distributedlog-core-shaded/pom.xml [new file with mode: 0644]
shaded/pom.xml [new file with mode: 0644]
src/owasp-dependency-check-suppressions.xml
stats/pom.xml [new file with mode: 0644]
stats/utils/pom.xml [new file with mode: 0644]
stream/api/pom.xml [new file with mode: 0644]
stream/bin/streamstorage
stream/bin/streamstorage-cli
stream/bk-grpc-name-resolver/pom.xml [new file with mode: 0644]
stream/clients/java/all/pom.xml [new file with mode: 0644]
stream/clients/java/base/pom.xml [new file with mode: 0644]
stream/clients/java/kv/pom.xml [new file with mode: 0644]
stream/clients/java/pom.xml [new file with mode: 0644]
stream/clients/pom.xml [new file with mode: 0644]
stream/common/pom.xml [new file with mode: 0644]
stream/distributedlog/common/pom.xml [new file with mode: 0644]
stream/distributedlog/core/build.gradle
stream/distributedlog/core/pom.xml [new file with mode: 0644]
stream/distributedlog/io/dlfs/pom.xml [new file with mode: 0644]
stream/distributedlog/io/pom.xml [new file with mode: 0644]
stream/distributedlog/pom.xml [new file with mode: 0644]
stream/distributedlog/protocol/pom.xml [new file with mode: 0644]
stream/pom.xml [new file with mode: 0644]
stream/proto/pom.xml [new file with mode: 0644]
stream/server/build.gradle
stream/server/pom.xml [new file with mode: 0644]
stream/statelib/pom.xml [new file with mode: 0644]
stream/storage/api/pom.xml [new file with mode: 0644]
stream/storage/impl/pom.xml [new file with mode: 0644]
stream/storage/pom.xml [new file with mode: 0644]
stream/tests-common/pom.xml [new file with mode: 0644]
tests/backward-compat/bc-non-fips/pom.xml [new file with mode: 0644]
tests/backward-compat/current-server-old-clients/pom.xml [new file with mode: 0644]
tests/backward-compat/hierarchical-ledger-manager/pom.xml [new file with mode: 0644]
tests/backward-compat/hostname-bookieid/pom.xml [new file with mode: 0644]
tests/backward-compat/old-cookie-new-cluster/pom.xml [new file with mode: 0644]
tests/backward-compat/pom.xml [new file with mode: 0644]
tests/backward-compat/recovery-no-password/pom.xml [new file with mode: 0644]
tests/backward-compat/upgrade-direct/pom.xml [new file with mode: 0644]
tests/backward-compat/upgrade/pom.xml [new file with mode: 0644]
tests/backward-compat/yahoo-custom-version/pom.xml [new file with mode: 0644]
tests/docker-images/all-released-versions-image/pom.xml [new file with mode: 0644]
tests/docker-images/all-versions-image/pom.xml [new file with mode: 0644]
tests/docker-images/pom.xml [new file with mode: 0644]
tests/integration-tests-base-groovy/pom.xml [new file with mode: 0644]
tests/integration-tests-base/pom.xml [new file with mode: 0644]
tests/integration-tests-topologies/pom.xml [new file with mode: 0644]
tests/integration-tests-utils/pom.xml [new file with mode: 0644]
tests/integration-tests-utils/src/main/java/org/apache/bookkeeper/tests/integration/utils/BookKeeperClusterUtils.java
tests/integration/cluster/pom.xml [new file with mode: 0644]
tests/integration/pom.xml [new file with mode: 0644]
tests/integration/smoke/pom.xml [new file with mode: 0644]
tests/integration/standalone/pom.xml [new file with mode: 0644]
tests/pom.xml [new file with mode: 0644]
tests/scripts/pom.xml [new file with mode: 0644]
tests/scripts/src/test/bash/gradle/bk_test_bin_common.sh
tests/shaded/bookkeeper-server-shaded-test/pom.xml [new file with mode: 0644]
tests/shaded/bookkeeper-server-tests-shaded-test/pom.xml [new file with mode: 0644]
tests/shaded/distributedlog-core-shaded-test/pom.xml [new file with mode: 0644]
tests/shaded/pom.xml [new file with mode: 0644]
tools/all/build.gradle
tools/all/pom.xml [new file with mode: 0644]
tools/framework/pom.xml [new file with mode: 0644]
tools/ledger/pom.xml [new file with mode: 0644]
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/commands/autorecovery/AutoRecoveryCommandTest.java
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/commands/bookies/DecommissionCommandTest.java
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/commands/bookies/RecoverCommandTest.java
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/commands/client/LedgerMetaDataCommandTest.java
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/commands/cookie/AdminCommandTest.java
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/helpers/CommandTestBase.java
tools/ledger/src/test/java/org/apache/bookkeeper/tools/cli/helpers/MockCommandSupport.java
tools/perf/build.gradle
tools/perf/pom.xml [new file with mode: 0644]
tools/pom.xml [new file with mode: 0644]
tools/stream/pom.xml [new file with mode: 0644]