Update java cookbook dependency

Allow anything compatible with `1.21` instead of `>=` which can pull in API-incompatible future versions.