mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-28 04:38:55 +08:00
- Added I18nKeyGenPlugin Gradle plugin for generating internationalization key files - Refactoring the internationalization module to separate the API and implementation code - Updated the project structure to create new submodules to support internationalization - Modify the build configuration to add the necessary dependencies and properties
26 lines
752 B
Plaintext
26 lines
752 B
Plaintext
plugins {
|
|
// The Kotlin DSL plugin provides a convenient way to develop convention plugins.
|
|
// Convention plugins are located in `src/main/kotlin`, with the file extension `.gradle.kts`,
|
|
// and are applied in the project's `build.gradle.kts` files as required.
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
dependencies {
|
|
// Add a dependency on the Kotlin Gradle plugin, so that convention plugins can apply it.
|
|
implementation(libs.kotlinGradlePlugin)
|
|
}
|
|
gradlePlugin {
|
|
plugins {
|
|
register("forgeboot-i18n-key-gen") {
|
|
id = "i18n-key-gen"
|
|
implementationClass = "I18nKeyGenPlugin"
|
|
description =
|
|
"提供一个用于生成 i18n key文件 的插件"
|
|
}
|
|
}
|
|
}
|