mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Include min task version in all checks
This commit is contained in:
committed by
Alexey Tsvetkov
parent
b601ed9693
commit
6991b4f5de
@@ -70,7 +70,7 @@ tasks.test {
|
||||
configureTest(maxGradleVersionForTests)
|
||||
}
|
||||
|
||||
tasks.register("testMinGradleVersion", Test::class.java) {
|
||||
val testMinGradleVersion by tasks.registering(Test::class) {
|
||||
tasks.test.get().let { defaultTest ->
|
||||
classpath = defaultTest.classpath
|
||||
}
|
||||
@@ -93,4 +93,8 @@ fun Test.configureTest(gradleVersion: String) {
|
||||
} else {
|
||||
doFirst { error("Use JDK 14 to run tests or set up JDK_14 env. var") }
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("check") {
|
||||
dependsOn(testMinGradleVersion)
|
||||
}
|
||||
Reference in New Issue
Block a user