Target JVM 11 bytecode in gradle android projects
Categories
(Firefox for Android :: General, task, P2)
Tracking
()
People
(Reporter: jonalmeida, Assigned: mcarare)
References
Details
(Whiteboard: [geckoview:m112])
Attachments
(1 file)
https://developer.android.com/studio/releases/gradle-plugin#jvm-11-bytecode
Android Gradle plugin targets JVM 11 bytecode
Starting with Android Gradle plugin 7.4.0-alpha04, AGP ships wth JVM 11 bytecode. This means that if you compile against AGP, or write custom Lint checks, you need to start targeting JVM 11 bytecode. One of the ways to do this is to include the following in your module-level
build.gradlefile:sourceCompatibility = "11" targetCompatibility = "11"
We should start targeting JVM 11 bytecode by updating our projects as recommended so we have an easier time upgrading to the next AGP version.
We can try to update these places and see what happens to our build: https://github.com/search?q=org%3Amozilla-mobile+sourceCompatibility+JavaVersion.VERSION_1_8&type=code
| Reporter | ||
Comment 1•3 years ago
|
||
Does not affect GeckoView. The project already targets JVM 11.
| Reporter | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
I plan to take on this, after the mono-repo migration is complete, to avoid complicating that process or adding extra hindrance in identifying possible problems in the migration process.
| Assignee | ||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
No need to uplift to 111
Description
•