Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support java 17 runtime when create function project #3311

Merged
merged 7 commits into from Sep 13, 2022

Conversation

Flanker32
Copy link
Member

Add new Java 17 runtime in function creation steps, fixes #3245

image

@Flanker32 Flanker32 requested a review from a team as a code owner September 4, 2022 10:03
Copy link
Member

@shreyas-gopalakrishna shreyas-gopalakrishna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the quick turnaround @Flanker32

src/commands/createNewProject/javaSteps/JavaVersions.ts Outdated Show resolved Hide resolved
src/commands/createNewProject/javaSteps/JavaVersions.ts Outdated Show resolved Hide resolved
src/commands/createNewProject/javaSteps/JavaVersions.ts Outdated Show resolved Hide resolved
src/commands/createNewProject/javaSteps/JavaVersions.ts Outdated Show resolved Hide resolved
@@ -45,7 +45,7 @@ for (const version of [FuncVersion.v2, FuncVersion.v3, FuncVersion.v4]) {
const appName: string = 'javaApp';
const javaBaseInputs: (TestInput | string | RegExp)[] = [TestInput.UseDefaultValue, TestInput.UseDefaultValue, TestInput.UseDefaultValue, TestInput.UseDefaultValue, appName];
if (version !== FuncVersion.v2) { // v2 doesn't support picking a java version
javaBaseInputs.unshift(/11/);
javaBaseInputs.unshift(/8/);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this get changed to an earlier version of Java?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As some of the test environment uses java 8 as default java version, we add java version validation in this pr and will not provide java 11 as an option in this case

@nturinski nturinski merged commit 9a25d46 into microsoft:main Sep 13, 2022
@microsoft microsoft locked and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functions - Java 17 Support
3 participants