Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Add a confirmation in `firebase init dataconnect` before asking for app idea description. (#9282)
- Removes support for running emulators with Java versions prior to 21.
2 changes: 1 addition & 1 deletion src/emulator/commandUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,5 +589,5 @@ export async function checkJavaMajorVersion(): Promise<number> {

export const MIN_SUPPORTED_JAVA_MAJOR_VERSION = 21;
export const JAVA_DEPRECATION_WARNING =
"firebase-tools will drop support for Java version < 21 soon in firebase-tools@15. " +
"firebase-tools no longer supports Java version before 21. " +
"Please install a JDK at version 21 or above to get a compatible runtime.";
2 changes: 1 addition & 1 deletion src/emulator/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export async function startAll(
if (targets.some(requiresJava)) {
if ((await commandUtils.checkJavaMajorVersion()) < MIN_SUPPORTED_JAVA_MAJOR_VERSION) {
utils.logLabeledError("emulators", JAVA_DEPRECATION_WARNING, "warn");
deprecationNotices.push(JAVA_DEPRECATION_WARNING);
throw new FirebaseError(JAVA_DEPRECATION_WARNING);
}
}
if (options.logVerbosity) {
Expand Down
Loading