Bug 1822393 - Set the source and target compatibility compile options for non-GeckoView projects. r=owlish,nalexander,geckoview-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D201853
This commit is contained in:
Gabriel Luong
2024-02-13 21:15:55 -05:00
parent 87ae6857c9
commit 278dd91720

View File

@@ -446,6 +446,18 @@ subprojects { project ->
ktlint('0.49.1') ktlint('0.49.1')
} }
} }
} else {
afterEvaluate {
// Set the source and target compatibility for non-GeckoView projects only.
if (it.hasProperty('android')) {
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
}
}
} }
project.configurations.configureEach { project.configurations.configureEach {