mirror of
https://github.com/HighCapable/SweetDependency.git
synced 2025-09-05 18:25:48 +08:00
Compare commits
4 Commits
46786f765b
...
16f8422424
Author | SHA1 | Date | |
---|---|---|---|
16f8422424
|
|||
df85b8b8eb
|
|||
b4b3511c16
|
|||
040f619413
|
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="2.1.10" />
|
<option name="version" value="2.2.10" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@@ -12,24 +12,24 @@ repositories:
|
|||||||
plugins:
|
plugins:
|
||||||
org.jetbrains.kotlin.jvm:
|
org.jetbrains.kotlin.jvm:
|
||||||
alias: kotlin-jvm
|
alias: kotlin-jvm
|
||||||
version: 2.1.10
|
version: 2.2.10
|
||||||
org.jetbrains.kotlin.plugin.serialization:
|
org.jetbrains.kotlin.plugin.serialization:
|
||||||
alias: kotlin-serialization
|
alias: kotlin-serialization
|
||||||
version-ref: kotlin-jvm
|
version-ref: kotlin-jvm
|
||||||
com.vanniktech.maven.publish:
|
com.vanniktech.maven.publish:
|
||||||
alias: maven-publish
|
alias: maven-publish
|
||||||
version: 0.31.0
|
version: 0.34.0
|
||||||
|
|
||||||
libraries:
|
libraries:
|
||||||
org.snakeyaml:
|
org.snakeyaml:
|
||||||
snakeyaml-engine:
|
snakeyaml-engine:
|
||||||
version: 2.9
|
version: 2.10
|
||||||
com.charleskorn.kaml:
|
com.charleskorn.kaml:
|
||||||
kaml:
|
kaml:
|
||||||
version: 0.72.0
|
version: 0.92.0
|
||||||
com.squareup.okhttp3:
|
com.squareup.okhttp3:
|
||||||
okhttp:
|
okhttp:
|
||||||
version: 4.12.0
|
version: 5.1.0
|
||||||
com.squareup:
|
com.squareup:
|
||||||
javapoet:
|
javapoet:
|
||||||
version: 1.13.0
|
version: 1.13.0
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
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
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
@@ -8,7 +8,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
plugins {
|
plugins {
|
||||||
id("com.highcapable.sweetdependency") version "1.0.4"
|
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 {
|
sweetDependency {
|
||||||
isEnableVerboseMode = false
|
isEnableVerboseMode = false
|
||||||
|
@@ -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 {
|
internal inline fun <reified T : BaseTask> Project.createTask(group: String, name: String) = runCatching {
|
||||||
T::class.java.getConstructor().newInstance().also { instance ->
|
T::class.java.getConstructor().newInstance().also { instance ->
|
||||||
task(name) {
|
tasks.register(name) {
|
||||||
this.group = group
|
this.group = group
|
||||||
outputs.upToDateWhen { false }
|
outputs.upToDateWhen { false }
|
||||||
doFirst { instance.onTransaction() }
|
doFirst { instance.onTransaction() }
|
||||||
|
@@ -68,6 +68,7 @@ internal data class LibraryDependencyWrapper internal constructor(private val in
|
|||||||
* - [type] 需要为 [LibraryDependencyType.PROJECT] 否则始终为 null
|
* - [type] 需要为 [LibraryDependencyType.PROJECT] 否则始终为 null
|
||||||
* @return [Project] or 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()
|
val project get() = runCatching { (instance as? ProjectDependency?)?.dependencyProject }.getOrNull()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user