mirror of
https://github.com/HighCapable/SweetDependency.git
synced 2025-09-04 01:35:46 +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"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="2.1.10" />
|
||||
<option name="version" value="2.2.10" />
|
||||
</component>
|
||||
</project>
|
@@ -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
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -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
|
@@ -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
|
||||
|
@@ -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() }
|
||||
|
@@ -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()
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user