http-client-java: remove legacy AutorestSettings and write Package api-version to CHANGELOG.md for Fluent Premium - #11433
Conversation
Rename AutorestSettings to ProjectSettings, retaining only output-folder. Drop the unused java-sdks-folder and title options, SwaggerReadmeTemplate generation, and the AutoRest tag based service description (management service description now uses api-version, renamed to apiVersionDescription). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e177a409-63c1-46e4-89d7-d501f1e36a7f
|
All changed packages have been documented.
Show changes
|
…sionMap field Remove the now-unused 'title' setting from TypeSpecFluentPlugin (and its constructor param / caller), since nothing reads it after SwaggerReadmeTemplate removal. Also remove the pre-existing write-only apiVersionMap field and setApiVersionInTypeSpec setter in FluentProject. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e177a409-63c1-46e4-89d7-d501f1e36a7f
|
You can try these changes here
|
…t Premium Extract FluentProject.apiVersionDescription(Map) as a static helper so the api-version description can be computed without a full FluentProject. Add a Changelog.updateForVersion(String apiVersionDescription) overload that inserts (or replaces, idempotently) a '- Package api-version ...' bullet into the top-most version section, keeping tidy blank lines. Extract isVersionSectionHeader helper to remove duplicate section-header detection. Add ChangelogTests coverage including a real-world sample. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e177a409-63c1-46e4-89d7-d501f1e36a7f
… Fluent Premium Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e177a409-63c1-46e4-89d7-d501f1e36a7f
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e177a409-63c1-46e4-89d7-d501f1e36a7f
|
I am letting emitter write the |
…service spec Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e177a409-63c1-46e4-89d7-d501f1e36a7f
Summary
Two related changes to the http-client-java generator:
Package api-versiontoCHANGELOG.mdfor Fluent Premium, matching the existing Fluent Lite behavior.Changes
Remove legacy AutoRest settings
AutorestSettings→ProjectSettings, retaining onlyoutput-folder(loaded vialoadStringSetting).java-sdks-folder— it is never set by the TypeSpec plugins (always null), so its consumer branch inProject.findSdkFolder()is removed; the SDK folder is now solely deduced fromoutput-folder.title— it had no consumer after removingSwaggerReadmeTemplate.SwaggerReadmeTemplate,JavaPackage.addSwaggerReadmeMarkdown, and thegenerateSwaggerMarkdownparameter ofJavagen.writeToTemplates.tagDescription→apiVersionDescriptioninFluentProject, keeping theapiVersionMap-based logic but dropping the legacy AutoResttagbranch.CHANGELOG.md api-version for Fluent Premium
FluentProject.apiVersionDescription(Map)static helper so the description can be produced without a fullFluentProject.Changelog.updateForVersion(String apiVersionDescription)overload that inserts/replaces a- Package api-version {...}.line in the top-most version section (idempotent; adds a blank line before a following heading).FluentGenfor the Premium path: only whenisSdkIntegration, an api-version is present, and an existingCHANGELOG.mdis found (never creates one).Validation
mvn clean install) and is spotless-formatted.ChangelogTestscover the insertion logic, including a real-worldazure-resourcemanager-computesample.