Bug 1825116 - do not run spotless lint on firefox-android projects. r=owlish,geckoview-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D201543
This commit is contained in:
Geoff Brown 2024-01-31 13:43:13 -07:00
parent f04f333525
commit e6bb6e9c73

View File

@ -418,23 +418,33 @@ idea {
}
}
subprojects {
apply plugin: "com.diffplug.spotless"
subprojects { project ->
// Perform spotless lint in GeckoView projects only.
def projectName = project.getName()
if (projectName.startsWith('geckoview')
|| projectName == 'annotations'
|| projectName == 'exoplayer2'
|| projectName == 'messaging_example'
|| projectName == 'port_messaging_example'
|| projectName == 'test_runner'
) {
apply plugin: "com.diffplug.spotless"
spotless {
java {
target project.fileTree(project.projectDir) {
include '**/*.java'
exclude '**/thirdparty/**'
spotless {
java {
target project.fileTree(project.projectDir) {
include '**/*.java'
exclude '**/thirdparty/**'
}
googleJavaFormat('1.17.0')
}
googleJavaFormat('1.17.0')
}
kotlin {
target project.fileTree(project.projectDir) {
include '**/*.kt'
exclude '**/thirdparty/**'
kotlin {
target project.fileTree(project.projectDir) {
include '**/*.kt'
exclude '**/thirdparty/**'
}
ktlint('0.49.1')
}
ktlint('0.49.1')
}
}