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:
12
build.gradle
12
build.gradle
@@ -446,6 +446,18 @@ subprojects { project ->
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user