mirror of
https://github.com/HighCapable/SweetDependency.git
synced 2025-09-04 01:35:46 +08:00
fix: wrong gradle version check in SweetDependencyExtensionImpl
This commit is contained in:
@@ -63,7 +63,7 @@ internal class SweetDependencyExtensionImpl : BaseExtensionImpl() {
|
||||
""".trimIndent(), noTag = true
|
||||
)
|
||||
}
|
||||
if (GradleHelper.version.let { it.startsWith("7.") || !it.startsWith("8.") }) SError.make(
|
||||
if (GradleHelper.version.let { !it.startsWith("7.") && !it.startsWith("8.") }) SError.make(
|
||||
"${SweetDependency.TAG} ${SweetDependency.VERSION} " +
|
||||
"does not support Gradle ${GradleHelper.version}, please update Gradle or plugin version"
|
||||
)
|
||||
|
Reference in New Issue
Block a user