Disable all verification tasks if special option is passed
This commit is contained in:
@@ -1047,3 +1047,15 @@ val Jar.outputFile: File
|
|||||||
|
|
||||||
val Project.sourceSetsOrNull: SourceSetContainer?
|
val Project.sourceSetsOrNull: SourceSetContainer?
|
||||||
get() = convention.findPlugin(JavaPluginConvention::class.java)?.sourceSets
|
get() = convention.findPlugin(JavaPluginConvention::class.java)?.sourceSets
|
||||||
|
|
||||||
|
val disableVerificationTasks = System.getProperty("disable.verification.tasks") == "true"
|
||||||
|
if (disableVerificationTasks) {
|
||||||
|
gradle.taskGraph.whenReady {
|
||||||
|
allTasks.forEach {
|
||||||
|
if (it is VerificationTask) {
|
||||||
|
println("DISABLED: '$it'")
|
||||||
|
it.enabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user