[mob][photos] Fix build failing in release workflow (#1497)
## Description
Build was failing with this error
```
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':connectivity_plus:compileReleaseJavaWithJavac'.
> error: invalid source release: 17
```
## Tests
- [x] Ran workflow to verify it's completing.