Когда я добавляю lintChecks project(':checks')
к моему модулю build.gradle
, как показано ниже:
apply from: "$rootDir/dependencies.gradle"
apply plugin: 'kotlin'
dependencies {
lintChecks project(':checks')
// Libraries
implementation libs.arrow.core
implementation libs.javaxInject
implementation libs.kotlin.stdlib
implementation libs.moshi.core
implementation libs.moshi.adapters
implementation libs.rxjava.core
implementation libs.rxjava.kotlin
// Test Dependencies
testImplementation libs.truth
testImplementation libs.spek.dsl
testRuntimeOnly libs.spek.runner
}
test {
useJUnitPlatform {
includeEngines 'spek'
}
}
Я получаю:
Could not find method lintChecks() for arguments [project ':checks'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Кто-нибудь знает, чтоможет решить это?Я пытаюсь реализовать пользовательские проверки пуха, и я следую примерам кода Google до тройника.