mirror of
https://github.com/HighCapable/SweetDependency.git
synced 2025-09-05 18:25:48 +08:00
docs: update guide
This commit is contained in:
@@ -346,6 +346,9 @@ plugins:
|
|||||||
org.jetbrains.kotlin.android:
|
org.jetbrains.kotlin.android:
|
||||||
alias: kotlin-android
|
alias: kotlin-android
|
||||||
version: 1.8.10
|
version: 1.8.10
|
||||||
|
com.google.devtools.ksp:
|
||||||
|
alias: kotlin-ksp
|
||||||
|
version: 1.8.10-1.0.9
|
||||||
|
|
||||||
# 配置需要使用的库依赖
|
# 配置需要使用的库依赖
|
||||||
libraries:
|
libraries:
|
||||||
@@ -389,6 +392,12 @@ libraries:
|
|||||||
# 注意:如果你声明了 "version-ref",此依赖将在自动装配和更新中被排除
|
# 注意:如果你声明了 "version-ref",此依赖将在自动装配和更新中被排除
|
||||||
# 注意:如果你声明了 "version-ref","auto-update"、"repositories"、"version-filter" 将无效
|
# 注意:如果你声明了 "version-ref","auto-update"、"repositories"、"version-filter" 将无效
|
||||||
version-ref: <this>::core # 或 "androidx.core:core" 以及 "androidx-core" (别名)
|
version-ref: <this>::core # 或 "androidx.core:core" 以及 "androidx-core" (别名)
|
||||||
|
com.google.devtools.ksp:
|
||||||
|
symbol-processing-api:
|
||||||
|
# 如果你想引用一个不属于当前作用域 ("libraries") 的依赖或别名,你需要声明其所属的作用域
|
||||||
|
# 例如引用 "plugins" 作用域中的依赖别名 "kotlin-ksp",你需要使用 "<plugins>::" 作为开头进行声明
|
||||||
|
# 同理,在 "plugins" 作用域中需要使用 "<libraries>::" 作为开头进行声明
|
||||||
|
version-ref: <plugins>::kotlin-ksp # 或 "<plugins>::com.google.devtools.ksp"
|
||||||
com.squareup.okhttp3:
|
com.squareup.okhttp3:
|
||||||
okhttp:
|
okhttp:
|
||||||
# 如果你在版本中声明了一个 "version-filter" 中存在的版本 (内置过滤器或排除列表)
|
# 如果你在版本中声明了一个 "version-filter" 中存在的版本 (内置过滤器或排除列表)
|
||||||
|
@@ -368,6 +368,9 @@ plugins:
|
|||||||
org.jetbrains.kotlin.android:
|
org.jetbrains.kotlin.android:
|
||||||
alias: kotlin-android
|
alias: kotlin-android
|
||||||
version: 1.8.10
|
version: 1.8.10
|
||||||
|
com.google.devtools.ksp:
|
||||||
|
alias: kotlin-ksp
|
||||||
|
version: 1.8.10-1.0.9
|
||||||
|
|
||||||
# Configure libraries that need to be used
|
# Configure libraries that need to be used
|
||||||
libraries:
|
libraries:
|
||||||
@@ -416,6 +419,14 @@ libraries:
|
|||||||
# Note: If you declare "version-ref", this dependency will be excluded from autowiring and updating
|
# Note: If you declare "version-ref", this dependency will be excluded from autowiring and updating
|
||||||
# Note: If you declare "version-ref", "auto-update", "repositories", "version-filter" will not work
|
# Note: If you declare "version-ref", "auto-update", "repositories", "version-filter" will not work
|
||||||
version-ref: <this>::core # Or "androidx.core:core" and "androidx-core" (alias)
|
version-ref: <this>::core # Or "androidx.core:core" and "androidx-core" (alias)
|
||||||
|
com.google.devtools.ksp:
|
||||||
|
symbol-processing-api:
|
||||||
|
# If you want to reference a dependency or alias that does not belong to the current scope ("libraries"),
|
||||||
|
# you need to declare the scope it belongs to
|
||||||
|
# For example, to reference the dependency alias "kotlin-ksp" in the "plugins" scope,
|
||||||
|
# you need to use "<plugins>::" as the beginning of the declaration
|
||||||
|
# Similarly, you need to use "<libraries>::" as the beginning of the declaration in the "plugins" scope
|
||||||
|
version-ref: <plugins>::kotlin-ksp # Or "<plugins>::com.google.devtools.ksp"
|
||||||
com.squareup.okhttp3:
|
com.squareup.okhttp3:
|
||||||
okhttp:
|
okhttp:
|
||||||
# If you declare a version in the version that exists in "version-filter" (internal filter or exclude list)
|
# If you declare a version in the version that exists in "version-filter" (internal filter or exclude list)
|
||||||
|
Reference in New Issue
Block a user