Bug 1849833 - Use tasks.register to avoid unnecessary configuration.

fenix/119.0
mcarare 1 year ago committed by mergify[bot]
parent 1eda8620ff
commit 0991e4bbc8

@ -767,7 +767,7 @@ tasks.register('printVariants') {
}
}
task buildTranslationArray {
tasks.register('buildTranslationArray') {
// This isn't running as a task, instead the array is build when the gradle file is parsed.
// https://github.com/mozilla-mobile/fenix/issues/14175
def foundLocales = new StringBuilder()

@ -239,7 +239,7 @@ tasks.register('ktlint', JavaExec) {
args "app/src/**/*.kt", "!**/build/**/*.kt", "--baseline=ktlint-baseline.xml"
}
task ktlintFormat(type: JavaExec, group: "formatting") {
tasks.register('ktlintFormat', JavaExec) {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
mainClass.set("com.pinterest.ktlint.Main")

Loading…
Cancel
Save