From 82995bf75d6a192dda1ace66fff80e02308cc62d Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Tue, 12 Nov 2024 11:01:16 +0800 Subject: [PATCH] http-client-java, remove default flavor=azure (#5045) So that now the default should be unbranded ("flavor=generic" but we do not need to write it) and bump jar versions --- packages/http-client-java/emitter/src/emitter.ts | 7 ++----- .../generator/http-client-generator-core/pom.xml | 6 +++--- .../core/model/projectmodel/Project.java | 12 ++++++------ .../generator/http-client-generator-mgmt/pom.xml | 12 ++++++------ .../generator/http-client-generator-test/pom.xml | 16 ++++++++-------- .../generator/http-client-generator/pom.xml | 8 ++++---- 6 files changed, 29 insertions(+), 32 deletions(-) diff --git a/packages/http-client-java/emitter/src/emitter.ts b/packages/http-client-java/emitter/src/emitter.ts index a31f2acb1b..703dc47f9a 100644 --- a/packages/http-client-java/emitter/src/emitter.ts +++ b/packages/http-client-java/emitter/src/emitter.ts @@ -63,7 +63,7 @@ const EmitterOptionsSchema: JSONSchemaType = { "output-dir": { type: "string", nullable: true }, "package-dir": { type: "string", nullable: true }, - flavor: { type: "string", nullable: true, default: "Azure" }, + flavor: { type: "string", nullable: true }, // service "service-name": { type: "string", nullable: true }, @@ -113,10 +113,7 @@ export async function $onEmit(context: EmitContext) { if (!options["flavor"]) { if (options["package-dir"]?.toLocaleLowerCase().startsWith("azure")) { // Azure package - options["flavor"] = "Azure"; - } else { - // default - options["flavor"] = "Azure"; + options["flavor"] = "azure"; } } const builder = new CodeModelBuilder(program, context); diff --git a/packages/http-client-java/generator/http-client-generator-core/pom.xml b/packages/http-client-java/generator/http-client-generator-core/pom.xml index db1dd58ac9..752ec2c69b 100644 --- a/packages/http-client-java/generator/http-client-generator-core/pom.xml +++ b/packages/http-client-java/generator/http-client-generator-core/pom.xml @@ -24,7 +24,7 @@ com.azure azure-core - 1.53.0 + 1.54.0 com.fasterxml.jackson.core @@ -92,13 +92,13 @@ org.junit.jupiter junit-jupiter-api - 5.9.3 + 5.11.2 test org.junit.jupiter junit-jupiter-engine - 5.9.3 + 5.11.2 test diff --git a/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/model/projectmodel/Project.java b/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/model/projectmodel/Project.java index dc7b90aa8e..8f474d8b8e 100644 --- a/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/model/projectmodel/Project.java +++ b/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/model/projectmodel/Project.java @@ -56,12 +56,12 @@ public class Project { public enum Dependency { // azure AZURE_CLIENT_SDK_PARENT("com.azure", "azure-client-sdk-parent", "1.7.0"), - AZURE_CORE("com.azure", "azure-core", "1.53.0"), - AZURE_CORE_MANAGEMENT("com.azure", "azure-core-management", "1.15.4"), - AZURE_CORE_HTTP_NETTY("com.azure", "azure-core-http-netty", "1.15.5"), - AZURE_CORE_TEST("com.azure", "azure-core-test", "1.27.0-beta.2"), - AZURE_IDENTITY("com.azure", "azure-identity", "1.14.0"), - AZURE_CORE_EXPERIMENTAL("com.azure", "azure-core-experimental", "1.0.0-beta.54"), + AZURE_CORE("com.azure", "azure-core", "1.54.0"), + AZURE_CORE_MANAGEMENT("com.azure", "azure-core-management", "1.15.5"), + AZURE_CORE_HTTP_NETTY("com.azure", "azure-core-http-netty", "1.15.6"), + AZURE_CORE_TEST("com.azure", "azure-core-test", "1.27.0-beta.3"), + AZURE_IDENTITY("com.azure", "azure-identity", "1.14.1"), + AZURE_CORE_EXPERIMENTAL("com.azure", "azure-core-experimental", "1.0.0-beta.55"), CLIENTCORE("io.clientcore", "core", "1.0.0-beta.1"), CLIENTCORE_JSON("io.clientcore", "core-json", "1.0.0-beta.1"); diff --git a/packages/http-client-java/generator/http-client-generator-mgmt/pom.xml b/packages/http-client-java/generator/http-client-generator-mgmt/pom.xml index 48ca9d80a8..af1b3ae391 100644 --- a/packages/http-client-java/generator/http-client-generator-mgmt/pom.xml +++ b/packages/http-client-java/generator/http-client-generator-mgmt/pom.xml @@ -30,7 +30,7 @@ com.azure azure-core-management - 1.15.4 + 1.15.5 com.fasterxml.jackson.core @@ -49,19 +49,19 @@ org.junit.jupiter junit-jupiter-api - 5.9.3 + 5.11.2 test org.junit.jupiter junit-jupiter-engine - 5.9.3 + 5.11.2 test org.junit.jupiter junit-jupiter-params - 5.9.3 + 5.11.2 test @@ -75,13 +75,13 @@ net.bytebuddy byte-buddy - 1.14.12 + 1.15.5 test net.bytebuddy byte-buddy-agent - 1.14.12 + 1.15.5 test diff --git a/packages/http-client-java/generator/http-client-generator-test/pom.xml b/packages/http-client-java/generator/http-client-generator-test/pom.xml index 70dee69e55..d0e5e3876e 100644 --- a/packages/http-client-java/generator/http-client-generator-test/pom.xml +++ b/packages/http-client-java/generator/http-client-generator-test/pom.xml @@ -23,7 +23,7 @@ com.azure azure-core - 1.53.0 + 1.54.0 com.azure @@ -38,7 +38,7 @@ com.azure azure-core-test - 1.27.0-beta.2 + 1.27.0-beta.3 test @@ -50,23 +50,23 @@ com.azure azure-identity - 1.14.0 + 1.14.1 com.azure azure-core-management - 1.15.4 + 1.15.5 org.junit.jupiter junit-jupiter-api - 5.9.3 + 5.11.2 test io.projectreactor reactor-test - 3.4.38 + 3.4.41 org.mockito @@ -79,13 +79,13 @@ net.bytebuddy byte-buddy - 1.14.12 + 1.15.5 test net.bytebuddy byte-buddy-agent - 1.14.12 + 1.15.5 test diff --git a/packages/http-client-java/generator/http-client-generator/pom.xml b/packages/http-client-java/generator/http-client-generator/pom.xml index 917f0e1ea7..e8b73693b5 100644 --- a/packages/http-client-java/generator/http-client-generator/pom.xml +++ b/packages/http-client-java/generator/http-client-generator/pom.xml @@ -28,19 +28,19 @@ org.junit.jupiter junit-jupiter-api - 5.9.3 + 5.11.2 test org.junit.jupiter junit-jupiter-engine - 5.9.3 + 5.11.2 test org.junit.jupiter junit-jupiter-params - 5.9.3 + 5.11.2 test @@ -57,7 +57,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.5.2 + 3.6.0 package