[Gradle] Add 'validatePlugins' tasks for Gradle plugin dependencies
Gradle 8 has removed "validate-external-gradle-plugin" plugin which we used before to run validate task inputs proper annotations. With this change, every Gradle dependency that is not published as a Gradle plugin but uses Gradle API types is also running 'validatedPlugins' task registered manually via a build script. ^KT-59827 Fixed
This commit is contained in:
committed by
Space Team
parent
f5889bcc6c
commit
dc5660d98c
@@ -170,11 +170,6 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
withType<ValidatePlugins>().configureEach {
|
||||
failOnWarning.set(true)
|
||||
enableStricterValidation.set(true)
|
||||
}
|
||||
|
||||
withType<ShadowJar>().configureEach {
|
||||
relocate("com.github.gundy", "$kotlinEmbeddableRootPackage.com.github.gundy")
|
||||
relocate("de.undercouch.gradle.tasks.download", "$kotlinEmbeddableRootPackage.de.undercouch.gradle.tasks.download")
|
||||
@@ -187,9 +182,12 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
projectTest {
|
||||
dependsOn(tasks.named("validatePlugins"))
|
||||
tasks.named("validatePlugins") {
|
||||
// We're manually registering and wiring validation tasks for each plugin variant
|
||||
enabled = false
|
||||
}
|
||||
|
||||
projectTest {
|
||||
workingDir = rootDir
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user