From c4df046be318e7a780a7e3b9ba100ceb62d1be3a Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 24 Jan 2023 16:43:18 +0800 Subject: [PATCH] Let check depend on version compatibility tasks https://github.com/davidburstrom/version-compatibility-gradle-plugin#lifecycle-tasks --- lib/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/build.gradle b/lib/build.gradle index 30c8fe8b15..0b42c7bcc1 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -42,6 +42,11 @@ versionCompatibility { } } +tasks.named("check").configure { + dependsOn(tasks.named("testCompatibilityAdapters")) + dependsOn(tasks.named("testCompatibility")) +} + dependencies { compileOnly 'org.slf4j:slf4j-api:2.0.0' // zero runtime reqs is a hard requirements for spotless-lib