From c97c67638b6b6f7b28cfbdd37875a297a0688a0e Mon Sep 17 00:00:00 2001 From: Tom Dyas Date: Tue, 22 Mar 2022 12:25:46 -0400 Subject: [PATCH] [internal] delete non-experimental java protobuf backend (#14866) Delete the non-experimental Java protobuf backend in favor of the experimental version. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- .../backend/codegen/protobuf/java/register.py | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/python/pants/backend/codegen/protobuf/java/register.py diff --git a/src/python/pants/backend/codegen/protobuf/java/register.py b/src/python/pants/backend/codegen/protobuf/java/register.py deleted file mode 100644 index ef510a37ec1..00000000000 --- a/src/python/pants/backend/codegen/protobuf/java/register.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -"""Generate Java sources from Protocol Buffers (Protobufs). - -See https://www.pantsbuild.org/docs/protobuf. -""" - -from pants.backend.codegen import export_codegen_goal -from pants.backend.codegen.protobuf import protobuf_dependency_inference -from pants.backend.codegen.protobuf import tailor as protobuf_tailor -from pants.backend.codegen.protobuf.java.rules import rules as java_rules -from pants.backend.codegen.protobuf.target_types import ( - ProtobufSourcesGeneratorTarget, - ProtobufSourceTarget, -) -from pants.backend.codegen.protobuf.target_types import rules as protobuf_target_rules -from pants.core.util_rules import stripped_source_files - - -def rules(): - return [ - *java_rules(), - *protobuf_dependency_inference.rules(), - *protobuf_tailor.rules(), - *export_codegen_goal.rules(), - *protobuf_target_rules(), - *stripped_source_files.rules(), - ] - - -def target_types(): - return [ProtobufSourcesGeneratorTarget, ProtobufSourceTarget]