diff --git a/docs/changelog-zh-CN.md b/docs/changelog-zh-CN.md index bbd83fe..8d32956 100644 --- a/docs/changelog-zh-CN.md +++ b/docs/changelog-zh-CN.md @@ -38,4 +38,11 @@ ## 1.0.5 | 2023.11.08 -- 修复遇到特殊字符和重复键值名称造成代码生成失败的严重问题 \ No newline at end of file +- 修复遇到特殊字符和重复键值名称造成代码生成失败的严重问题 + +## 1.0.6 | 2025.08.19 + +- 修复在新版 Android Gradle Plugin 及 Android Studio/IDEA 中部署源码路径时的错误 + `removeContentEntry: removed content entry url 'build/generated/sweet-property' still exists after removing` +- 新增 `sourceSetName` 方法,允许自定义要部署的源集名称 +- 修复在类型自动转换过程中某些 `commit id` 和 Hash 可能被识别为数值类型的问题 \ No newline at end of file diff --git a/docs/changelog.md b/docs/changelog.md index 7db83d4..b31e8fe 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -39,4 +39,11 @@ ## 1.0.5 | 2023.11.08 -- Fix a serious issue that caused code generation failure when encountering special characters and duplicate key-value names \ No newline at end of file +- Fix a serious issue that caused code generation failure when encountering special characters and duplicate key-value names + +## 1.0.6 | 2025.08.19 + +- Fix errors when deploying source code paths in the new version of Android Gradle Plugin and Android Studio/IDEA + `removeContentEntry: removed content entry url 'build/generated/sweet-property' still exists after removing` +- Added the `sourceSetName` method to allow customization of the source set name to be deployed +- Fix an issue where some `commit id` and Hash might be recognized as numeric types during the automatic type conversion process \ No newline at end of file diff --git a/docs/guide-zh-CN.md b/docs/guide-zh-CN.md index ba57794..f079d89 100644 --- a/docs/guide-zh-CN.md +++ b/docs/guide-zh-CN.md @@ -155,6 +155,10 @@ sweetProperty { // 默认为 "build/generated/sweet-property" // 建议将生成的代码放置于 "build" 目录下,因为生成的代码不建议去修改它 generateDirPath = "build/generated/sweet-property" + // 自定义部署的 `sourceSet` 名称 + // 如果你的项目源码部署名称不是默认值,可以在这里自定义 + // 默认为 "main" + sourceSetName = "main" // 自定义生成的包名 // Android 项目默认使用 "android" 配置方法块中的 "namespace" // 普通的 Kotlin on Jvm 项目默认使用项目设置的 "project.group" diff --git a/docs/guide.md b/docs/guide.md index 6fa7ba7..ce1f16a 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -168,6 +168,10 @@ sweetProperty { // It is recommended to place the generated code in the "build" directory, // because the generated code is not recommended to be modified generateDirPath = "build/generated/sweet-property" + // Custom deployed `sourceSet` name + // If your project source code deployment name is not the default value, you can customize it here + // Defaults to "main" + sourceSetName = "main" // Custom generated package name // Android projects use the "namespace" in the "android" configuration method block by default // Ordinary Kotlin on Jvm projects use the "project.group" of the project settings by default diff --git a/gradle.properties b/gradle.properties index 4bb56e7..7aa1127 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,12 +3,12 @@ project.name=SweetProperty project.url=https://github.com/HighCapable/SweetProperty project.groupName=com.highcapable.sweetproperty project.moduleName=sweet-property -project.version=1.0.5 +project.version=1.0.6 # Gradle Plugin Configuration gradle.plugin.moduleName=${project.groupName}.gradle.plugin gradle.plugin.implementationClass=${project.groupName}.plugin.SweetPropertyPlugin # Maven Publish Configuration -SONATYPE_HOST=S01 +SONATYPE_HOST=CENTRAL_PORTAL RELEASE_SIGNING_ENABLED=true # Maven POM Configuration POM_NAME=SweetProperty diff --git a/settings.gradle.kts b/settings.gradle.kts index b34ec4d..eba2665 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -8,7 +8,7 @@ pluginManagement { } plugins { id("com.highcapable.sweetdependency") version "1.0.4" - id("com.highcapable.sweetproperty") version "1.0.5" + id("com.highcapable.sweetproperty") version "1.0.6" } sweetDependency { isEnableVerboseMode = false