forgeboot/buildSrc/build.gradle.kts
gewuyou b44b5a1570 feat(i18n): Refactored the internationalization module and added Gradle plugin support
- 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
2025-05-28 21:57:51 +08:00

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文件 的插件"
}
}
}