aboutsummaryrefslogtreecommitdiffstats
path: root/build/platform/java
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /build/platform/java
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'build/platform/java')
-rw-r--r--build/platform/java/error_prone/2.10.0/ya.make4
-rw-r--r--build/platform/java/error_prone/2.3.1/ya.make4
-rw-r--r--build/platform/java/error_prone/2.7.1/ya.make4
-rw-r--r--build/platform/java/error_prone/ya.make28
-rw-r--r--build/platform/java/groovy/ya.make10
-rw-r--r--build/platform/java/jacoco-agent/ya.make9
-rw-r--r--build/platform/java/jdk/jdk10/ya.make20
-rw-r--r--build/platform/java/jdk/jdk11/ya.make31
-rw-r--r--build/platform/java/jdk/jdk12/ya.make20
-rw-r--r--build/platform/java/jdk/jdk13/ya.make28
-rw-r--r--build/platform/java/jdk/jdk14/ya.make20
-rw-r--r--build/platform/java/jdk/jdk15/ya.make22
-rw-r--r--build/platform/java/jdk/jdk16/ya.make23
-rw-r--r--build/platform/java/jdk/jdk17/ya.make23
-rw-r--r--build/platform/java/jdk/jdk8/ya.make23
-rw-r--r--build/platform/java/jdk/resources.inc49
-rw-r--r--build/platform/java/jdk/ya.make311
-rw-r--r--build/platform/java/jni/ya.make29
-rw-r--r--build/platform/java/jstyle_lib/ya.make11
-rw-r--r--build/platform/java/kotlin/ya.make31
-rw-r--r--build/platform/java/kythe/ya.make10
-rw-r--r--build/platform/java/scriptgen/ya.make27
-rw-r--r--build/platform/java/uberjar/uberjar10/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar11/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar12/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar13/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar14/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar15/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar16/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar17/ya.make6
-rw-r--r--build/platform/java/uberjar/uberjar8/ya.make6
-rw-r--r--build/platform/java/uberjar/ya.make39
-rw-r--r--build/platform/java/ya.make10
33 files changed, 840 insertions, 0 deletions
diff --git a/build/platform/java/error_prone/2.10.0/ya.make b/build/platform/java/error_prone/2.10.0/ya.make
new file mode 100644
index 0000000000..d08a624350
--- /dev/null
+++ b/build/platform/java/error_prone/2.10.0/ya.make
@@ -0,0 +1,4 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE_2_10_0 sbr:2649935593)
+END()
diff --git a/build/platform/java/error_prone/2.3.1/ya.make b/build/platform/java/error_prone/2.3.1/ya.make
new file mode 100644
index 0000000000..5d2267036f
--- /dev/null
+++ b/build/platform/java/error_prone/2.3.1/ya.make
@@ -0,0 +1,4 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE_2_3_1 sbr:616853779)
+END()
diff --git a/build/platform/java/error_prone/2.7.1/ya.make b/build/platform/java/error_prone/2.7.1/ya.make
new file mode 100644
index 0000000000..81a345ba98
--- /dev/null
+++ b/build/platform/java/error_prone/2.7.1/ya.make
@@ -0,0 +1,4 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE_2_7_1 sbr:2202855601)
+END()
diff --git a/build/platform/java/error_prone/ya.make b/build/platform/java/error_prone/ya.make
new file mode 100644
index 0000000000..ee2eceafc0
--- /dev/null
+++ b/build/platform/java/error_prone/ya.make
@@ -0,0 +1,28 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+IF(USE_SYSTEM_ERROR_PRONE)
+ MESSAGE(WARNING System Error Prone $USE_SYSTEM_ERROR_PRONE will be used)
+ELSEIF(ERROR_PRONE_VERSION == "2.3.1")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:616853779)
+ELSEIF(ERROR_PRONE_VERSION == "2.3.2")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:760800655)
+ELSEIF(ERROR_PRONE_VERSION == "2.3.3")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:919320393)
+ELSEIF(ERROR_PRONE_VERSION == "2.4.0")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:1585305794)
+ELSEIF(ERROR_PRONE_VERSION == "2.6.0")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:2139890169)
+ELSEIF(ERROR_PRONE_VERSION == "2.7.1")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:2202855601)
+ELSEIF(ERROR_PRONE_VERSION == "2.10.0")
+ DECLARE_EXTERNAL_RESOURCE(ERROR_PRONE sbr:2649935593)
+ELSE()
+ MESSAGE(FATAL_ERROR Unsupported Error Prone version: $ERROR_PRONE_VERSION)
+ENDIF()
+END()
+
+RECURSE(
+ 2.10.0
+ 2.7.1
+ 2.3.1
+)
diff --git a/build/platform/java/groovy/ya.make b/build/platform/java/groovy/ya.make
new file mode 100644
index 0000000000..01058729b2
--- /dev/null
+++ b/build/platform/java/groovy/ya.make
@@ -0,0 +1,10 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+IF(USE_SYSTEM_GROOVY_COMPILER)
+ MESSAGE(WARNING System groovy $USE_SYSTEM_GROOVY_COMPILER will be used)
+ELSEIF(GROOVY_VERSION == "3.0.5")
+ DECLARE_EXTERNAL_RESOURCE(GROOVY_COMPILER sbr:1710622475)
+ELSE()
+ MESSAGE(FATAL_ERROR Unexpected groovy version ${GROOVY_VERSION})
+ENDIF()
+END()
diff --git a/build/platform/java/jacoco-agent/ya.make b/build/platform/java/jacoco-agent/ya.make
new file mode 100644
index 0000000000..c298dc9020
--- /dev/null
+++ b/build/platform/java/jacoco-agent/ya.make
@@ -0,0 +1,9 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+IF(USE_SYSTEM_JACOCO_AGENT)
+ MESSAGE(WARNING System jacoco agent $USE_SYSTEM_JACOCO_AGENT will be used)
+ELSE()
+ DECLARE_EXTERNAL_RESOURCE(JACOCO_AGENT sbr:2493693569)
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk10/ya.make b/build/platform/java/jdk/jdk10/ya.make
new file mode 100644
index 0000000000..83a420a81f
--- /dev/null
+++ b/build/platform/java/jdk/jdk10/ya.make
@@ -0,0 +1,20 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK10
+ ${JDK10_DARWIN} FOR DARWIN
+ ${JDK10_LINUX} FOR LINUX
+ ${JDK10_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK10 ${JDK10_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK10 ${JDK10_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK10 ${JDK10_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk11/ya.make b/build/platform/java/jdk/jdk11/ya.make
new file mode 100644
index 0000000000..ae450c9c97
--- /dev/null
+++ b/build/platform/java/jdk/jdk11/ya.make
@@ -0,0 +1,31 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK11
+ ${JDK11_DARWIN} FOR DARWIN
+ ${JDK11_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK11_LINUX} FOR LINUX
+ ${JDK11_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK11 ${JDK11_DARWIN_ARM64})
+ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK11 ${JDK11_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK11 ${JDK11_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK11 ${JDK11_WINDOWS})
+ENDIF()
+
+IF(SANITIZER_TYPE == "address")
+ IF(HOST_OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(JDK_FOR_TESTS11 ${JDK11_LINUX_ASAN})
+ ELSE()
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK11 with asan)
+ ENDIF()
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk12/ya.make b/build/platform/java/jdk/jdk12/ya.make
new file mode 100644
index 0000000000..3ab3553338
--- /dev/null
+++ b/build/platform/java/jdk/jdk12/ya.make
@@ -0,0 +1,20 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK12
+ ${JDK12_DARWIN} FOR DARWIN
+ ${JDK12_LINUX} FOR LINUX
+ ${JDK12_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK12 ${JDK12_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK12 ${JDK12_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK12 ${JDK12_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk13/ya.make b/build/platform/java/jdk/jdk13/ya.make
new file mode 100644
index 0000000000..527af68fb2
--- /dev/null
+++ b/build/platform/java/jdk/jdk13/ya.make
@@ -0,0 +1,28 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK13
+ ${JDK13_DARWIN} FOR DARWIN
+ ${JDK13_LINUX} FOR LINUX
+ ${JDK13_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK13 ${JDK13_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK13 ${JDK13_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK13 ${JDK13_WINDOWS})
+ENDIF()
+
+IF(SANITIZER_TYPE == "address")
+ IF(HOST_OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(JDK_FOR_TESTS ${JDK13_LINUX_ASAN})
+ ELSE()
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK13 with asan)
+ ENDIF()
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk14/ya.make b/build/platform/java/jdk/jdk14/ya.make
new file mode 100644
index 0000000000..ed08c1a7fb
--- /dev/null
+++ b/build/platform/java/jdk/jdk14/ya.make
@@ -0,0 +1,20 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK14
+ ${JDK14_DARWIN} FOR DARWIN
+ ${JDK14_LINUX} FOR LINUX
+ ${JDK14_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK14 ${JDK14_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK14 ${JDK14_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK14 ${JDK14_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk15/ya.make b/build/platform/java/jdk/jdk15/ya.make
new file mode 100644
index 0000000000..0746e27405
--- /dev/null
+++ b/build/platform/java/jdk/jdk15/ya.make
@@ -0,0 +1,22 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK15
+ ${JDK15_DARWIN} FOR DARWIN
+ ${JDK15_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK15_LINUX} FOR LINUX
+ ${JDK15_WINDOWS} FOR WIN32
+)
+IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK15 ${JDK15_DARWIN_ARM64})
+ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK15 ${JDK15_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK15 ${JDK15_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK15 ${JDK15_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk16/ya.make b/build/platform/java/jdk/jdk16/ya.make
new file mode 100644
index 0000000000..2fc2f16418
--- /dev/null
+++ b/build/platform/java/jdk/jdk16/ya.make
@@ -0,0 +1,23 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK16
+ ${JDK16_DARWIN} FOR DARWIN
+ ${JDK16_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK16_LINUX} FOR LINUX
+ ${JDK16_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK16 ${JDK16_DARWIN_ARM64})
+ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK16 ${JDK16_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK16 ${JDK16_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK16 ${JDK16_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk17/ya.make b/build/platform/java/jdk/jdk17/ya.make
new file mode 100644
index 0000000000..97aa391945
--- /dev/null
+++ b/build/platform/java/jdk/jdk17/ya.make
@@ -0,0 +1,23 @@
+OWNER(heretic)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK17
+ ${JDK17_DARWIN} FOR DARWIN
+ ${JDK17_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK17_LINUX} FOR LINUX
+ ${JDK17_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK17 ${JDK17_DARWIN_ARM64})
+ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK17 ${JDK17_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK17 ${JDK17_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK17 ${JDK17_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/jdk8/ya.make b/build/platform/java/jdk/jdk8/ya.make
new file mode 100644
index 0000000000..7386b4731c
--- /dev/null
+++ b/build/platform/java/jdk/jdk8/ya.make
@@ -0,0 +1,23 @@
+OWNER(trenin17)
+RESOURCES_LIBRARY()
+INCLUDE(${ARCADIA_ROOT}/build/platform/java/jdk/resources.inc)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK8
+ ${JDK8_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK8_DARWIN} FOR DARWIN
+ ${JDK8_LINUX} FOR LINUX
+ ${JDK8_WINDOWS} FOR WIN32
+)
+
+IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK8 ${JDK8_DARWIN_ARM64})
+ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK8 ${JDK8_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK8 ${JDK8_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK8 ${JDK8_WINDOWS})
+ENDIF()
+
+END()
diff --git a/build/platform/java/jdk/resources.inc b/build/platform/java/jdk/resources.inc
new file mode 100644
index 0000000000..7413263cd9
--- /dev/null
+++ b/build/platform/java/jdk/resources.inc
@@ -0,0 +1,49 @@
+# JDK 17
+SET(JDK17_DARWIN_ARM64 sbr:2720893567)
+SET(JDK17_DARWIN sbr:2720886299)
+SET(JDK17_LINUX sbr:2720875090)
+SET(JDK17_WINDOWS sbr:2720881931)
+
+# JDK 16
+SET(JDK16_DARWIN_ARM64 sbr:2197985911)
+SET(JDK16_DARWIN sbr:2197936962)
+SET(JDK16_LINUX sbr:2197854301)
+SET(JDK16_WINDOWS sbr:2197964128)
+
+# JDK 15
+SET(JDK15_DARWIN sbr:1901471162)
+SET(JDK15_DARWIN_ARM64 sbr:2107376046)
+SET(JDK15_LINUX sbr:1901452000)
+SET(JDK15_WINDOWS sbr:1901563630)
+
+# JDK 14
+SET(JDK14_DARWIN sbr:1714972232)
+SET(JDK14_LINUX sbr:1714966923)
+SET(JDK14_WINDOWS sbr:1714975688)
+
+# JDK 13
+SET(JDK13_DARWIN sbr:1327581343)
+SET(JDK13_LINUX sbr:1327248424)
+SET(JDK13_WINDOWS sbr:1327617393)
+
+SET(JDK13_LINUX_ASAN sbr:1327513158)
+# JDK 12
+SET(JDK12_DARWIN sbr:1128561457)
+SET(JDK12_LINUX sbr:1128737735)
+SET(JDK12_WINDOWS sbr:1128743394)
+# JDK 11
+SET(JDK11_DARWIN sbr:1903539486)
+SET(JDK11_DARWIN_ARM64 sbr:2107253283)
+SET(JDK11_LINUX sbr:1903522585)
+SET(JDK11_WINDOWS sbr:1903567822)
+
+SET(JDK11_LINUX_ASAN sbr:1323637508)
+# JDK 10
+SET(JDK10_DARWIN sbr:545649998)
+SET(JDK10_LINUX sbr:545649806)
+SET(JDK10_WINDOWS sbr:545648079)
+# JDK 8
+SET(JDK8_DARWIN_ARM64 sbr:1901326056)
+SET(JDK8_DARWIN sbr:1901326056)
+SET(JDK8_LINUX sbr:1901306329)
+SET(JDK8_WINDOWS sbr:1901510679)
diff --git a/build/platform/java/jdk/ya.make b/build/platform/java/jdk/ya.make
new file mode 100644
index 0000000000..909ae36e18
--- /dev/null
+++ b/build/platform/java/jdk/ya.make
@@ -0,0 +1,311 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+
+INCLUDE(resources.inc)
+
+IF(JDK_VERSION == "17")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK17_DARWIN} FOR DARWIN
+ ${JDK17_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK17_LINUX} FOR LINUX
+ ${JDK17_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK17)
+ ENDIF()
+ELSEIF(JDK_VERSION == "16")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK16_DARWIN} FOR DARWIN
+ ${JDK16_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK16_LINUX} FOR LINUX
+ ${JDK16_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK16)
+ ENDIF()
+ELSEIF(JDK_VERSION == "15")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK15_DARWIN} FOR DARWIN
+ ${JDK15_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK15_LINUX} FOR LINUX
+ ${JDK15_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK15)
+ ENDIF()
+ELSEIF(JDK_VERSION == "14")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK14_DARWIN} FOR DARWIN
+ ${JDK14_LINUX} FOR LINUX
+ ${JDK14_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK14)
+ ENDIF()
+ELSEIF(JDK_VERSION == "13")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK13_DARWIN} FOR DARWIN
+ ${JDK13_LINUX} FOR LINUX
+ ${JDK13_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK13)
+ ENDIF()
+ELSEIF(JDK_VERSION == "12")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK12_DARWIN} FOR DARWIN
+ ${JDK12_LINUX} FOR LINUX
+ ${JDK12_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK12)
+ ENDIF()
+ELSEIF(JDK_VERSION == "11")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK11_DARWIN} FOR DARWIN
+ ${JDK11_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK11_LINUX} FOR LINUX
+ ${JDK11_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK11)
+ ENDIF()
+ELSEIF(JDK_VERSION == "10")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK10_DARWIN} FOR DARWIN
+ ${JDK10_LINUX} FOR LINUX
+ ${JDK10_WINDOWS} FOR WIN32
+ )
+ELSEIF(JDK_VERSION == "8")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK_DEFAULT
+ ${JDK8_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK8_DARWIN} FOR DARWIN
+ ${JDK8_LINUX} FOR LINUX
+ ${JDK8_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK8)
+ ENDIF()
+ELSE()
+ MESSAGE(FATAL_ERROR Unsupported JDK version)
+ENDIF()
+
+IF(USE_SYSTEM_JDK)
+ MESSAGE(WARNING System JDK $USE_SYSTEM_JDK will be used)
+ELSEIF(JDK_VERSION == "17")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK17_DARWIN} FOR DARWIN
+ ${JDK17_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK17_LINUX} FOR LINUX
+ ${JDK17_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK17)
+ ENDIF()
+
+ IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK17_DARWIN_ARM64})
+ ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK17_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK17_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK17_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "16")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK16_DARWIN} FOR DARWIN
+ ${JDK16_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK16_LINUX} FOR LINUX
+ ${JDK16_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK16)
+ ENDIF()
+
+ IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK16_DARWIN_ARM64})
+ ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK16_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK16_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK16_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "15")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK15_DARWIN} FOR DARWIN
+ ${JDK15_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK15_LINUX} FOR LINUX
+ ${JDK15_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK15)
+ ENDIF()
+
+ IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK15_DARWIN_ARM64})
+ ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK15_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK15_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK15_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "14")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK14_DARWIN} FOR DARWIN
+ ${JDK14_LINUX} FOR LINUX
+ ${JDK14_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK14)
+ ENDIF()
+
+ IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK14_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK14_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK14_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "13")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK13_DARWIN} FOR DARWIN
+ ${JDK13_LINUX} FOR LINUX
+ ${JDK13_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK13)
+ ENDIF()
+ IF(SANITIZER_TYPE == "address")
+ IF(HOST_OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(JDK_FOR_TESTS ${JDK13_LINUX_ASAN})
+ ELSE()
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK13 with asan)
+ ENDIF()
+ ENDIF()
+
+ IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK13_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK13_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK13_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "12")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK12_DARWIN} FOR DARWIN
+ ${JDK12_LINUX} FOR LINUX
+ ${JDK12_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK12)
+ ENDIF()
+
+ IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK12_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK12_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK12_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "11")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK11_DARWIN} FOR DARWIN
+ ${JDK11_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK11_LINUX} FOR LINUX
+ ${JDK11_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK11)
+ ENDIF()
+ IF(SANITIZER_TYPE == "address")
+ IF(HOST_OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(JDK_FOR_TESTS ${JDK11_LINUX_ASAN})
+ ELSE()
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK11 with asan)
+ ENDIF()
+ ENDIF()
+
+ IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK11_DARWIN_ARM64})
+ ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK11_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK11_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK11_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "10")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK10_DARWIN} FOR DARWIN
+ ${JDK10_LINUX} FOR LINUX
+ ${JDK10_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK10)
+ ENDIF()
+
+ IF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK10_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK10_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK10_WINDOWS})
+ ENDIF()
+ELSEIF(JDK_VERSION == "8")
+ DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ JDK
+ ${JDK8_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${JDK8_DARWIN} FOR DARWIN
+ ${JDK8_LINUX} FOR LINUX
+ ${JDK8_WINDOWS} FOR WIN32
+ )
+ IF(NOT HOST_OS_LINUX AND NOT HOST_OS_WINDOWS AND NOT HOST_OS_DARWIN)
+ MESSAGE(FATAL_ERROR Unsupported platform for JDK8)
+ ENDIF()
+
+ IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK8_DARWIN_ARM64})
+ ELSEIF(OS_DARWIN)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK8_DARWIN})
+ ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK8_LINUX})
+ ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_JDK ${JDK8_WINDOWS})
+ ENDIF()
+ELSE()
+ MESSAGE(FATAL_ERROR Unsupported JDK version)
+ENDIF()
+
+END()
+
+RECURSE(
+ jdk8
+ jdk10
+ jdk11
+ jdk12
+ jdk13
+ jdk14
+ jdk15
+ jdk16
+ jdk17
+)
diff --git a/build/platform/java/jni/ya.make b/build/platform/java/jni/ya.make
new file mode 100644
index 0000000000..9d8dab98b1
--- /dev/null
+++ b/build/platform/java/jni/ya.make
@@ -0,0 +1,29 @@
+LIBRARY()
+OWNER(heretic)
+
+PEERDIR(
+ build/platform/java/jdk
+ ${JDK_RESOURCE_PEERDIR}
+)
+
+IF(OS_DARWIN)
+ SET(PLATFORM_NAME darwin)
+ELSEIF(OS_LINUX)
+ SET(PLATFORM_NAME linux)
+ELSEIF(OS_WINDOWS)
+ SET(PLATFORM_NAME win32)
+ENDIF()
+
+IF (USE_SYSTEM_JDK)
+ SET(JDK_ROOT ${USE_SYSTEM_JDK})
+ELSE()
+ SET(JDK_ROOT ${JDK_DEFAULT_RESOURCE_GLOBAL})
+ENDIF()
+IF (PLATFORM_NAME)
+ CFLAGS(GLOBAL -I${JDK_ROOT}/include)
+ CFLAGS(GLOBAL -I${JDK_ROOT}/include/${PLATFORM_NAME})
+ELSE()
+ MESSAGE(FATAL_ERROR Unsupported platform for jni)
+ENDIF()
+
+END()
diff --git a/build/platform/java/jstyle_lib/ya.make b/build/platform/java/jstyle_lib/ya.make
new file mode 100644
index 0000000000..fa55e63071
--- /dev/null
+++ b/build/platform/java/jstyle_lib/ya.make
@@ -0,0 +1,11 @@
+RESOURCES_LIBRARY()
+
+OWNER(heretic)
+
+IF (USE_SYSTEM_JSTYLE_LIB)
+ MESSAGE(WARNING System java codestyle library $USE_SYSTEM_JSTYLE_LIB will be used)
+ELSE()
+ DECLARE_EXTERNAL_RESOURCE(JSTYLE_LIB sbr:2525400095)
+ENDIF()
+
+END()
diff --git a/build/platform/java/kotlin/ya.make b/build/platform/java/kotlin/ya.make
new file mode 100644
index 0000000000..b4c0b0b83a
--- /dev/null
+++ b/build/platform/java/kotlin/ya.make
@@ -0,0 +1,31 @@
+# how to build: https://a.yandex-team.ru/arc/trunk/arcadia/devtools/kotlin_compiler_uberjar
+RESOURCES_LIBRARY()
+OWNER(heretic)
+IF(USE_SYSTEM_KOTLIN_COMPILER)
+ MESSAGE(WARNING System kotlin $USE_SYSTEM_KOTLIN_COMPILER will be used)
+ELSEIF(KOTLIN_VERSION == "1.3.72")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:1463870128)
+ELSEIF(KOTLIN_VERSION == "1.4.0")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:1708283452)
+ELSEIF(KOTLIN_VERSION == "1.4.10")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:1730522145)
+ELSEIF(KOTLIN_VERSION == "1.4.20")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:1869719387)
+ELSEIF(KOTLIN_VERSION == "1.4.30")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:1974389794)
+ELSEIF(KOTLIN_VERSION == "1.5.10")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:2183338194)
+ELSEIF(KOTLIN_VERSION == "1.5.20")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:2257446523)
+ELSEIF(KOTLIN_VERSION == "1.5.21")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:2285312314)
+ELSEIF(KOTLIN_VERSION == "1.5.30")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:2382793744)
+ELSEIF(KOTLIN_VERSION == "1.5.31")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:2444978303)
+ELSEIF(KOTLIN_VERSION == "1.6.10")
+ DECLARE_EXTERNAL_RESOURCE(KOTLIN_COMPILER sbr:2754878302)
+ELSE()
+ MESSAGE(FATAL_ERROR Unexpected KOTLIN_VERSION ${KOTLIN_VERSION})
+ENDIF()
+END()
diff --git a/build/platform/java/kythe/ya.make b/build/platform/java/kythe/ya.make
new file mode 100644
index 0000000000..d5a9237f68
--- /dev/null
+++ b/build/platform/java/kythe/ya.make
@@ -0,0 +1,10 @@
+RESOURCES_LIBRARY()
+OWNER(g:ymake)
+
+IF(USE_SYSTEM_KYTHE)
+ MESSAGE(WARNING System Kythe $USE_SYSTEM_KYTHE will be used)
+ELSE()
+ DECLARE_EXTERNAL_RESOURCE(KYTHE sbr:837801347)
+ENDIF()
+
+END()
diff --git a/build/platform/java/scriptgen/ya.make b/build/platform/java/scriptgen/ya.make
new file mode 100644
index 0000000000..d296097f52
--- /dev/null
+++ b/build/platform/java/scriptgen/ya.make
@@ -0,0 +1,27 @@
+RESOURCES_LIBRARY()
+OWNER(g:ymake)
+
+SET(SCRIPTGEN_LINUX sbr:2654452283)
+SET(SCRIPTGEN_DARWIN_ARM64 sbr:2654451866)
+SET(SCRIPTGEN_DARWIN sbr:2654452096)
+SET(SCRIPTGEN_WIN32 sbr:2654451225)
+
+DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
+ SCRIPTGEN
+ ${SCRIPTGEN_LINUX} FOR LINUX
+ ${SCRIPTGEN_DARWIN} FOR DARWIN
+ ${SCRIPTGEN_DARWIN_ARM64} FOR DARWIN-ARM64
+ ${SCRIPTGEN_WIN32} FOR WIN32
+)
+
+IF(OS_DARWIN AND ARCH_ARM64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_SCRIPTGEN ${SCRIPTGEN_DARWIN_ARM64})
+ELSEIF(OS_DARWIN AND ARCH_X86_64)
+ DECLARE_EXTERNAL_RESOURCE(WITH_SCRIPTGEN ${SCRIPTGEN_DARWIN})
+ELSEIF(OS_LINUX)
+ DECLARE_EXTERNAL_RESOURCE(WITH_SCRIPTGEN ${SCRIPTGEN_LINUX})
+ELSEIF(OS_WINDOWS)
+ DECLARE_EXTERNAL_RESOURCE(WITH_SCRIPTGEN ${SCRIPTGEN_WIN32})
+ENDIF()
+
+END()
diff --git a/build/platform/java/uberjar/uberjar10/ya.make b/build/platform/java/uberjar/uberjar10/ya.make
new file mode 100644
index 0000000000..29829b4cd0
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar10/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR10 sbr:720309903)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar11/ya.make b/build/platform/java/uberjar/uberjar11/ya.make
new file mode 100644
index 0000000000..69ae705253
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar11/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR11 sbr:962498940)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar12/ya.make b/build/platform/java/uberjar/uberjar12/ya.make
new file mode 100644
index 0000000000..88ff579eca
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar12/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR12 sbr:962498940)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar13/ya.make b/build/platform/java/uberjar/uberjar13/ya.make
new file mode 100644
index 0000000000..62c70ca3a1
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar13/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR13 sbr:1165818979)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar14/ya.make b/build/platform/java/uberjar/uberjar14/ya.make
new file mode 100644
index 0000000000..45e7deab2f
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar14/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR14 sbr:1407329657)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar15/ya.make b/build/platform/java/uberjar/uberjar15/ya.make
new file mode 100644
index 0000000000..49fdd64317
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar15/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR15 sbr:2074702997)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar16/ya.make b/build/platform/java/uberjar/uberjar16/ya.make
new file mode 100644
index 0000000000..ca4cefc1b1
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar16/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR16 sbr:2199772343)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar17/ya.make b/build/platform/java/uberjar/uberjar17/ya.make
new file mode 100644
index 0000000000..bc9bf4411b
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar17/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+# same resource as 16
+DECLARE_EXTERNAL_RESOURCE(UBERJAR17 sbr:2199772343)
+
+END()
diff --git a/build/platform/java/uberjar/uberjar8/ya.make b/build/platform/java/uberjar/uberjar8/ya.make
new file mode 100644
index 0000000000..45aec41508
--- /dev/null
+++ b/build/platform/java/uberjar/uberjar8/ya.make
@@ -0,0 +1,6 @@
+RESOURCES_LIBRARY()
+OWNER(trenin17)
+
+DECLARE_EXTERNAL_RESOURCE(UBERJAR8 sbr:962511340)
+
+END()
diff --git a/build/platform/java/uberjar/ya.make b/build/platform/java/uberjar/ya.make
new file mode 100644
index 0000000000..29c934d5b1
--- /dev/null
+++ b/build/platform/java/uberjar/ya.make
@@ -0,0 +1,39 @@
+RESOURCES_LIBRARY()
+OWNER(heretic)
+
+IF(USE_SYSTEM_UBERJAR)
+ MESSAGE(WARNING System uberjar $USE_SYSTEM_UBERJAR will be used)
+ELSEIF(JDK_VERSION == "17")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:2199772343)
+ELSEIF(JDK_VERSION == "16")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:2199772343)
+ELSEIF(JDK_VERSION == "15")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:2074702997)
+ELSEIF(JDK_VERSION == "14")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:1407329657)
+ELSEIF(JDK_VERSION == "13")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:1165818979)
+ELSEIF(JDK_VERSION == "12")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:962498940)
+ELSEIF(JDK_VERSION == "11")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:962498940)
+ELSEIF(JDK_VERSION == "10" OR JDK10) # !JDK10 flag is deprecated, this check should be removed later
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:720309903)
+ELSEIF(JDK_VERSION == "8")
+ DECLARE_EXTERNAL_RESOURCE(UBERJAR sbr:962511340)
+ELSE()
+ MESSAGE(FATAL_ERROR Uberjar is not supported for selected JDK version)
+ENDIF()
+
+END()
+
+RECURSE(
+ uberjar8
+ uberjar10
+ uberjar11
+ uberjar12
+ uberjar13
+ uberjar14
+ uberjar15
+ uberjar16
+)
diff --git a/build/platform/java/ya.make b/build/platform/java/ya.make
new file mode 100644
index 0000000000..7194053b98
--- /dev/null
+++ b/build/platform/java/ya.make
@@ -0,0 +1,10 @@
+RECURSE(
+ jdk
+ jni
+ uberjar
+ error_prone
+ jacoco-agent
+ kotlin
+ jstyle_lib
+ scriptgen
+)