Gradle script to enforce dependencies order

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Jie Li 2024-11-26 18:32:44 +00:00 committed by Aayush Gupta
parent 15089245bb
commit 061ce870ac
2 changed files with 62 additions and 1 deletions

View file

@ -12,6 +12,8 @@ plugins {
checkstyle
}
apply(from = "check-dependencies.gradle.kts")
val gitWorkingBranch = providers.exec {
commandLine("git", "rev-parse", "--abbrev-ref", "HEAD")
}.standardOutput.asText.map { it.trim() }
@ -180,7 +182,7 @@ afterEvaluate {
if (!System.getProperties().containsKey("skipFormatKtlint")) {
dependsOn("formatKtlint")
}
dependsOn("runCheckstyle", "runKtlint")
dependsOn("runCheckstyle", "runKtlint", "checkDependenciesOrder")
}
}