From b9cb7b62fac79926035d33dd8e9bd6a12c9653c9 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 23 Sep 2021 13:15:44 +0600 Subject: [PATCH] setup toolchain for java targets --- tgbotapi.core/build.gradle | 6 ++++++ tgbotapi.extensions.api/build.gradle | 7 +++++++ tgbotapi.extensions.behaviour_builder/build.gradle | 6 ++++++ tgbotapi.extensions.utils/build.gradle | 6 ++++++ tgbotapi/build.gradle | 8 ++++++++ 5 files changed, 33 insertions(+) diff --git a/tgbotapi.core/build.gradle b/tgbotapi.core/build.gradle index 83582016f5..c8e8861075 100644 --- a/tgbotapi.core/build.gradle +++ b/tgbotapi.core/build.gradle @@ -95,3 +95,9 @@ kotlin { } } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } +} diff --git a/tgbotapi.extensions.api/build.gradle b/tgbotapi.extensions.api/build.gradle index f47a5e111c..8dcc226dda 100644 --- a/tgbotapi.extensions.api/build.gradle +++ b/tgbotapi.extensions.api/build.gradle @@ -44,3 +44,10 @@ kotlin { } } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } +} + diff --git a/tgbotapi.extensions.behaviour_builder/build.gradle b/tgbotapi.extensions.behaviour_builder/build.gradle index c733bd1258..fe275f7938 100644 --- a/tgbotapi.extensions.behaviour_builder/build.gradle +++ b/tgbotapi.extensions.behaviour_builder/build.gradle @@ -44,3 +44,9 @@ kotlin { } } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } +} diff --git a/tgbotapi.extensions.utils/build.gradle b/tgbotapi.extensions.utils/build.gradle index 810af2519b..07aac2026e 100644 --- a/tgbotapi.extensions.utils/build.gradle +++ b/tgbotapi.extensions.utils/build.gradle @@ -62,3 +62,9 @@ kotlin { } } } + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } +} diff --git a/tgbotapi/build.gradle b/tgbotapi/build.gradle index 24fccc4e69..fda252a629 100644 --- a/tgbotapi/build.gradle +++ b/tgbotapi/build.gradle @@ -47,3 +47,11 @@ kotlin { } } } + + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } +} +