Forbid DEPENDENCY_MANAGEMENT on modules whuch do not support it
Some code in arcadia adds DEPENDENCY_MANAGEMENT and EXCLUDE macroses to PROTO_LIBRARY. Those macroses are silently ignored before. This commit restrict use of them to modules supporting dependency management of their peers.
@@ -749,7 +749,7 @@ module _BASE_UNIT {
.IGNORED=GO_PROTO_PLUGIN
.NODE_TYPE=Bundle
.PEERDIR_POLICY=as_include
- .RESTRICTED=GRPC INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT
+ .RESTRICTED=GRPC INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT DEPENDENCY_MANAGEMENT EXCLUDE
.FINAL_TARGET=no
PEERDIR_TAGS=CPP_PROTO CPP_IDL PY2 PY2_NATIVE YQL_UDF_STATIC __EMPTY__
@@ -3008,6 +3008,7 @@ macro WITH_JDK() {
module _JAVA_PLACEHOLDER: _BASE_UNIT {
.CMD=TOUCH_JAVA_UNIT
.FINAL_TARGET=yes
+ .ALLOWED=DEPENDENCY_MANAGEMENT EXCLUDE
# HAS_MANAGEABLE_PEERS=yes TODO(svidyuk) fix all configure errors from ymake DEPENDENCY_MANAGEMENT support
PEERDIR_TAGS=JAVA_PROTO JAVA_IDL
PEERDIR(build/platform/java/jdk)
