Skip to content

Commit

Permalink
Remove v1 Java Protobuf implementation (#10111)
Browse files Browse the repository at this point in the history
1.30.x is expected to be the last release in the Pants 1.x series. Pants 2.x will no longer support the v1 engine, meaning this backend will no longer work.

For anyone who still needs this functionality, we will give instructions and a script for users to be able to keep using Pants 1.x and Pants 2.x side-by-side. After we add a v2 Java implementation and given enough user interest, we can also port this functionality to the v2 engine or help users to write a plugin.

[ci skip-rust-tests]
[ci skip-jvm-tests]
  • Loading branch information
Eric-Arellano committed Jun 21, 2020
1 parent 49eb34b commit c7b1db6
Show file tree
Hide file tree
Showing 74 changed files with 10 additions and 1,402 deletions.
1 change: 0 additions & 1 deletion examples/3rdparty/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
protobuf==3.6.1
tensorflow==1.14.0
thrift>=0.10.0
11 changes: 0 additions & 11 deletions examples/src/java/org/pantsbuild/example/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ target(
':java_sources_directory',
':javac_directory',
':make_it_rain_directory',
':protobuf_directory',
# NB: See `:java_sources_directory` for why we must declare this dependency here.
'examples/src/scala/org/pantsbuild/example:scala_with_java_sources_directory'
],
Expand Down Expand Up @@ -106,13 +105,3 @@ files(
'examples/src/thrift/org/pantsbuild/example:precipitation_directory',
],
)

files(
name = 'protobuf_directory',
sources = ['protobuf/**/*'],
dependencies = [
'examples/src/protobuf/org/pantsbuild/example:distance_directory',
'examples/src/protobuf/org/pantsbuild/example:imports_directory',
'examples/src/protobuf/org/pantsbuild/example:unpacked_jars_directory',
],
)
12 changes: 0 additions & 12 deletions examples/src/java/org/pantsbuild/example/protobuf/distance/BUILD

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions examples/src/java/org/pantsbuild/example/protobuf/imports/BUILD

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions examples/src/protobuf/org/pantsbuild/example/BUILD

This file was deleted.

6 changes: 0 additions & 6 deletions examples/src/protobuf/org/pantsbuild/example/distance/BUILD

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions examples/src/protobuf/org/pantsbuild/example/imports/BUILD

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions examples/src/protobuf/org/pantsbuild/example/unpacked_jars/BUILD

This file was deleted.

18 changes: 0 additions & 18 deletions examples/tests/java/org/pantsbuild/example/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ target(
name = 'all_directories',
dependencies = [
':hello_directory',
':useproto_directory',
':useprotoimports_directory',
':usethrift_directory',
],
)
Expand All @@ -20,22 +18,6 @@ files(
],
)

files(
name = 'useproto_directory',
sources = ['useproto/**/*'],
dependencies = [
'examples/src/protobuf/org/pantsbuild/example:distance_directory',
],
)

files(
name = 'useprotoimports_directory',
sources = ['useprotoimports/**/*'],
dependencies = [
'examples/src/protobuf/org/pantsbuild/example:imports_directory',
],
)

files(
name = 'usethrift_directory',
sources = ['usethrift/**/*'],
Expand Down
13 changes: 0 additions & 13 deletions examples/tests/java/org/pantsbuild/example/useproto/BUILD

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions examples/tests/java/org/pantsbuild/example/useprotoimports/BUILD

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ config = "%(buildroot)s/build-support/scalastyle/scalastyle_config.xml"
[lint.scalastyle]
excludes = "%(buildroot)s/build-support/scalastyle/excludes.txt"

[protoc]
version = "2.4.1"

[scala]
version = 2.12

Expand Down
1 change: 0 additions & 1 deletion src/python/pants/backend/codegen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
python_library(
name = 'plugin',
dependencies = [
'src/python/pants/backend/codegen/protobuf/java',
'src/python/pants/backend/codegen/thrift/java',
'src/python/pants/backend/codegen/thrift/python',
'src/python/pants/build_graph',
Expand Down
2 changes: 2 additions & 0 deletions src/python/pants/backend/codegen/protobuf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

python_library(
dependencies = [
'src/python/pants/core/util_rules',
'src/python/pants/engine:platform',
'src/python/pants/engine:target',
],
tags = {"type_checked"},
Expand Down
25 changes: 0 additions & 25 deletions src/python/pants/backend/codegen/protobuf/java/BUILD

This file was deleted.

Empty file.

This file was deleted.

0 comments on commit c7b1db6

Please sign in to comment.