Skip to content

Commit

Permalink
Remove unused pom.xml files.
Browse files Browse the repository at this point in the history
We mostly use generated pom files in our release currently, so we can delete all the files that aren't used and the tools to update them.

Note, java/bom/pom.xml java/pom.xml and java/protoc/pom.xml are all still used at release and java/kotlin/pom.xml is used for documentation so all of those need to stay for now.

PiperOrigin-RevId: 654062810
  • Loading branch information
deannagarcia authored and copybara-github committed Jul 31, 2024
1 parent 6fdcc0b commit d2312e0
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 938 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ jobs:
bazel-cache: java_linux/11
bash: |
bazel build //java:release
mvn install:install-file -DpomFile=java/bom/pom.xml
mvn install:install-file -DpomFile=java/pom.xml
mvn install:install-file -Dfile=bazel-bin/java/core/core_mvn-project.jar -DpomFile=bazel-bin/java/core/core_mvn-pom.xml
mvn install:install-file -Dfile=bazel-bin/java/core/lite_mvn-project.jar -DpomFile=bazel-bin/java/core/lite_mvn-pom.xml
mvn install:install-file -Dfile=bazel-bin/java/kotlin-lite/kotlin-lite_mvn-project.jar -DpomFile=bazel-bin/java/kotlin-lite/kotlin-lite_mvn-pom.xml
Expand Down
3 changes: 0 additions & 3 deletions java/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ load("//java/internal:testing.bzl", "junit_tests")
load("//upb/cmake:build_defs.bzl", "staleness_test")

LITE_SRCS = [
# Keep in sync with `//java/lite:pom.xml`.
"src/main/java/com/google/protobuf/AbstractMessageLite.java",
"src/main/java/com/google/protobuf/AbstractParser.java",
"src/main/java/com/google/protobuf/AbstractProtobufList.java",
Expand Down Expand Up @@ -523,7 +522,6 @@ protobuf_java_library(
)

LITE_TEST_EXCLUSIONS = [
# Keep in sync with //java/lite:pom.xml id=copy-test-source-files execution.
"src/test/java/com/google/protobuf/AbstractMessageTest.java",
"src/test/java/com/google/protobuf/AbstractProto2SchemaTest.java",
"src/test/java/com/google/protobuf/AnyTest.java",
Expand Down Expand Up @@ -602,7 +600,6 @@ pkg_files(
"BUILD.bazel",
"generate-sources-build.xml",
"generate-test-sources-build.xml",
"pom.xml",
"pom_template.xml",
],
strip_prefix = strip_prefix.from_root(""),
Expand Down
164 changes: 0 additions & 164 deletions java/core/pom.xml

This file was deleted.

1 change: 0 additions & 1 deletion java/kotlin-lite/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ pkg_files(
"generate-sources-build.xml",
"generate-test-sources-build.xml",
"lite.awk",
"pom.xml",
"pom_template.xml",
"process-lite-sources-build.xml",
],
Expand Down
Loading

0 comments on commit d2312e0

Please sign in to comment.