Skip to content

Commit 37c65e1

Browse files
author
nogert
committed
Fix setting Kotlin AllOpen plugin.
commit_hash:4d29fe513bffc6a93952f4d5f69127371f90fb12
1 parent 5296ac5 commit 37c65e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/export_generators/ide-gradle/build.gradle.kts.jinja

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ plugins {
4444
{%- endif %}
4545
}
4646
{# language level #}
47-
{%- if target.required_jdk != "" %}
47+
{%- if target.required_jdk is defined and target.required_jdk|length %}
4848
java {
4949
toolchain {
5050
languageVersion = JavaLanguageVersion.of("{{ target.required_jdk }}")
@@ -55,6 +55,11 @@ java {
5555

5656
allOpen {
5757
annotation("org.springframework.stereotype.Component")
58+
annotation("org.springframework.transaction.annotation.Transactional")
59+
annotation("org.springframework.scheduling.annotation.Async")
60+
annotation("org.springframework.cache.annotation.Cacheable")
61+
annotation("org.springframework.boot.test.context.SpringBootTest")
62+
annotation("org.springframework.validation.annotation.Validated")
5863
}
5964
{% endif -%}
6065
{%- if with_kotlin %}

0 commit comments

Comments
 (0)