From 7a32e703cd3c21bd638e3866f4361cdc51f8bfb8 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 20 Oct 2024 16:27:21 +0100 Subject: [PATCH] i18n generation timing fix --- .idea/kotlinc.xml | 2 +- changes/1.5.1.md | 7 +++++++ gradle.properties | 2 +- .../dev/kordex/gradle/plugins/kordex/helpers/I18nHelper.kt | 2 +- testModule/settings.gradle.kts | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 changes/1.5.1.md diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index d4b7acc..fe63bb6 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/changes/1.5.1.md b/changes/1.5.1.md new file mode 100644 index 0000000..01496ca --- /dev/null +++ b/changes/1.5.1.md @@ -0,0 +1,7 @@ +# Gradle Plugins 1.5.0 + +This version includes a small fix for the KordEx plugin. + +## KordEx Plugin + +- Fix a problem where the generated `Key` objects were being generated too late for `compileKotlin` to pick them up. diff --git a/gradle.properties b/gradle.properties index f0dfa1b..58057cb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,4 +3,4 @@ kotlin.incremental=true org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m org.gradle.parallel=true -projectVersion=1.5.0 +projectVersion=1.5.1 diff --git a/kordex/src/main/kotlin/dev/kordex/gradle/plugins/kordex/helpers/I18nHelper.kt b/kordex/src/main/kotlin/dev/kordex/gradle/plugins/kordex/helpers/I18nHelper.kt index fcbbcea..fdf748d 100644 --- a/kordex/src/main/kotlin/dev/kordex/gradle/plugins/kordex/helpers/I18nHelper.kt +++ b/kordex/src/main/kotlin/dev/kordex/gradle/plugins/kordex/helpers/I18nHelper.kt @@ -65,7 +65,7 @@ object I18nHelper { } } - target.tasks.getByName("build") { + target.tasks.getByName("compileKotlin") { dependsOn(generateTask) } diff --git a/testModule/settings.gradle.kts b/testModule/settings.gradle.kts index 96cef42..53e31d3 100644 --- a/testModule/settings.gradle.kts +++ b/testModule/settings.gradle.kts @@ -1,6 +1,6 @@ pluginManagement { plugins { - val pluginVersion = "1.5.0" + val pluginVersion = "1.5.1" kotlin("jvm") version "2.0.21"