Skip to content

Commit f4f53f5

Browse files
committed
error out java version below 21
1 parent a26f4c7 commit f4f53f5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
- Removes support for running emulators with Java versions prior to 21.
12
- [Added] support for new google-genai plugin during `init genkit` (#8957)

src/emulator/commandUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,5 +589,5 @@ export async function checkJavaMajorVersion(): Promise<number> {
589589

590590
export const MIN_SUPPORTED_JAVA_MAJOR_VERSION = 21;
591591
export const JAVA_DEPRECATION_WARNING =
592-
"firebase-tools will drop support for Java version < 21 soon in firebase-tools@15. " +
592+
"firebase-tools no longer supports Java version before 21. " +
593593
"Please install a JDK at version 21 or above to get a compatible runtime.";

src/emulator/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export async function startAll(
299299
if (targets.some(requiresJava)) {
300300
if ((await commandUtils.checkJavaMajorVersion()) < MIN_SUPPORTED_JAVA_MAJOR_VERSION) {
301301
utils.logLabeledError("emulators", JAVA_DEPRECATION_WARNING, "warn");
302-
deprecationNotices.push(JAVA_DEPRECATION_WARNING);
302+
throw new FirebaseError(JAVA_DEPRECATION_WARNING);
303303
}
304304
}
305305
if (options.logVerbosity) {

0 commit comments

Comments
 (0)