PEERDIR to uberjar only if necessary
@@ -1704,7 +1704,9 @@ module JAVA_PLACEHOLDER: BASE_UNIT {
.CMD=TOUCH_JAVA_UNIT
PEERDIR_TAGS=JAVA_PROTO
PEERDIR(contrib/libs/platform/java/jdk)
- PEERDIR(contrib/libs/platform/java/uberjar)
+ when($MAKE_UBERJAR_VALUE) {
+ PEERDIR+=contrib/libs/platform/java/uberjar
+ }
NO_PLATFORM()
JAVA_MODULE()
