4 Commits

6 changed files with 10 additions and 9 deletions

2
.idea/kotlinc.xml generated
View File

@@ -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>

View File

@@ -12,24 +12,24 @@ repositories:
plugins:
org.jetbrains.kotlin.jvm:
alias: kotlin-jvm
version: 2.1.10
version: 2.2.10
org.jetbrains.kotlin.plugin.serialization:
alias: kotlin-serialization
version-ref: kotlin-jvm
com.vanniktech.maven.publish:
alias: maven-publish
version: 0.31.0
version: 0.34.0
libraries:
org.snakeyaml:
snakeyaml-engine:
version: 2.9
version: 2.10
com.charleskorn.kaml:
kaml:
version: 0.72.0
version: 0.92.0
com.squareup.okhttp3:
okhttp:
version: 4.12.0
version: 5.1.0
com.squareup:
javapoet:
version: 1.13.0

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

View File

@@ -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.8"
}
sweetDependency {
isEnableVerboseMode = false

View File

@@ -144,7 +144,7 @@ internal fun Project.waitForPluginAdded(id: String, action: (Plugin<*>) -> Unit)
*/
internal inline fun <reified T : BaseTask> Project.createTask(group: String, name: String) = runCatching {
T::class.java.getConstructor().newInstance().also { instance ->
task(name) {
tasks.register(name) {
this.group = group
outputs.upToDateWhen { false }
doFirst { instance.onTransaction() }

View File

@@ -68,6 +68,7 @@ internal data class LibraryDependencyWrapper internal constructor(private val in
* - [type] 需要为 [LibraryDependencyType.PROJECT] 否则始终为 null
* @return [Project] or null
*/
// FIXME: https://stackoverflow.com/questions/79619019/how-replace-deprecated-getdependencyproject-in-a-backwards-compatible-way
val project get() = runCatching { (instance as? ProjectDependency?)?.dependencyProject }.getOrNull()
/**