aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornogert <nogert@yandex-team.com>2024-10-07 13:48:06 +0300
committernogert <nogert@yandex-team.com>2024-10-07 13:59:54 +0300
commit37c65e1fa71e83fc6f6bf03a30883ac49f938635 (patch)
tree53a1d1fa0b595c9fd70b9a4bca595a3a4888a054
parent5296ac5b26271f6e5138c98433ee0875a75f8d45 (diff)
downloadydb-37c65e1fa71e83fc6f6bf03a30883ac49f938635.tar.gz
Fix setting Kotlin AllOpen plugin.
commit_hash:4d29fe513bffc6a93952f4d5f69127371f90fb12
-rw-r--r--build/export_generators/ide-gradle/build.gradle.kts.jinja7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.jinja b/build/export_generators/ide-gradle/build.gradle.kts.jinja
index ee68d1729f..3f7755b94e 100644
--- a/build/export_generators/ide-gradle/build.gradle.kts.jinja
+++ b/build/export_generators/ide-gradle/build.gradle.kts.jinja
@@ -44,7 +44,7 @@ plugins {
{%- endif %}
}
{# language level #}
-{%- if target.required_jdk != "" %}
+{%- if target.required_jdk is defined and target.required_jdk|length %}
java {
toolchain {
languageVersion = JavaLanguageVersion.of("{{ target.required_jdk }}")
@@ -55,6 +55,11 @@ java {
allOpen {
annotation("org.springframework.stereotype.Component")
+ annotation("org.springframework.transaction.annotation.Transactional")
+ annotation("org.springframework.scheduling.annotation.Async")
+ annotation("org.springframework.cache.annotation.Cacheable")
+ annotation("org.springframework.boot.test.context.SpringBootTest")
+ annotation("org.springframework.validation.annotation.Validated")
}
{% endif -%}
{%- if with_kotlin %}