mirror of
https://github.com/HighCapable/SweetProperty.git
synced 2025-09-05 10:15:36 +08:00
Compare commits
6 Commits
36c7af3c52
...
master
Author | SHA1 | Date | |
---|---|---|---|
283444e0d5
|
|||
b4fdbe6ad9
|
|||
0ae3f9a748
|
|||
a836ad9289
|
|||
d04a57c549
|
|||
308f1618ab
|
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="2.1.10" />
|
||||
<option name="version" value="2.2.10" />
|
||||
</component>
|
||||
</project>
|
@@ -40,10 +40,11 @@
|
||||
|
||||
- 修复遇到特殊字符和重复键值名称造成代码生成失败的严重问题
|
||||
|
||||
## 1.0.7 | 2025.08.19
|
||||
## 1.0.8 | 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 可能被识别为数值类型的问题
|
||||
- 合并 [#1](https://github.com/HighCapable/SweetProperty/pull/1) 并重新发布版本 (1.0.7)
|
||||
- 合并 [#1](https://github.com/HighCapable/SweetProperty/pull/1) 并重新发布版本 (1.0.6)
|
||||
- 修复由于 OSS 存储库被弃用导致重复提示检查更新的问题 (1.0.7)
|
@@ -41,10 +41,11 @@
|
||||
|
||||
- Fix a serious issue that caused code generation failure when encountering special characters and duplicate key-value names
|
||||
|
||||
## 1.0.7 | 2025.08.19
|
||||
## 1.0.8 | 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
|
||||
- Merge [#1](https://github.com/HighCapable/SweetProperty/pull/1) and re-release the version (1.0.7)
|
||||
- Merge [#1](https://github.com/HighCapable/SweetProperty/pull/1) and re-release version (1.0.6)
|
||||
- Fix a duplicate prompt for updates due to deprecating the OSS repository (1.0.7)
|
@@ -3,7 +3,7 @@ project.name=SweetProperty
|
||||
project.url=https://github.com/HighCapable/SweetProperty
|
||||
project.groupName=com.highcapable.sweetproperty
|
||||
project.moduleName=sweet-property
|
||||
project.version=1.0.7
|
||||
project.version=1.0.8
|
||||
# Gradle Plugin Configuration
|
||||
gradle.plugin.moduleName=${project.groupName}.gradle.plugin
|
||||
gradle.plugin.implementationClass=${project.groupName}.plugin.SweetPropertyPlugin
|
||||
|
@@ -12,18 +12,18 @@ repositories:
|
||||
plugins:
|
||||
org.jetbrains.kotlin.jvm:
|
||||
alias: kotlin-jvm
|
||||
version: 2.1.10
|
||||
version: 2.2.10
|
||||
com.vanniktech.maven.publish:
|
||||
alias: maven-publish
|
||||
version: 0.31.0
|
||||
version: 0.34.0
|
||||
|
||||
libraries:
|
||||
com.squareup.okhttp3:
|
||||
okhttp:
|
||||
version: 4.12.0
|
||||
version: 5.1.0
|
||||
com.squareup:
|
||||
kotlinpoet:
|
||||
version: 2.1.0
|
||||
version: 2.2.0
|
||||
javapoet:
|
||||
version: 1.13.0
|
||||
net.lingala.zip4j:
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
@@ -8,7 +8,7 @@ pluginManagement {
|
||||
}
|
||||
plugins {
|
||||
id("com.highcapable.sweetdependency") version "1.0.4"
|
||||
id("com.highcapable.sweetproperty") version "1.0.7"
|
||||
id("com.highcapable.sweetproperty") version "1.0.8"
|
||||
}
|
||||
sweetDependency {
|
||||
isEnableVerboseMode = false
|
||||
|
@@ -35,8 +35,8 @@ import javax.xml.parsers.DocumentBuilderFactory
|
||||
*/
|
||||
internal object PluginUpdateHelper {
|
||||
|
||||
/** OSS Release URL 地址 */
|
||||
private const val SONATYPE_OSS_RELEASES_URL = "https://s01.oss.sonatype.org/content/repositories/releases"
|
||||
/** Maven Central Release URL 地址 */
|
||||
private const val SONATYPE_OSS_RELEASES_URL = "https://repo1.maven.org/maven2"
|
||||
|
||||
/** 依赖配置文件名 */
|
||||
private const val METADATA_FILE_NAME = "maven-metadata.xml"
|
||||
|
@@ -52,7 +52,7 @@ internal fun String.executeUrlBody(username: String = "", password: String = "",
|
||||
else -> SError.make("Invalid URL: $this")
|
||||
}).get().build()
|
||||
).execute().let {
|
||||
if (it.code == 200 || it.code == 404) it.body?.string() ?: ""
|
||||
if (it.code == 200 || it.code == 404) it.body.string()
|
||||
else SError.make("Request failed with code ${it.code}")
|
||||
}
|
||||
}.onFailure { if (isShowFailure) SLog.error("Failed to connect to $this\n$it") }.getOrNull() ?: ""
|
Reference in New Issue
Block a user