Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.35k stars 1.99k forks source link

[FEATURE REQ] make clientcore available #42876

Open weidongxu-microsoft opened 3 days ago

weidongxu-microsoft commented 3 days ago

At present, clientcore must be built and installed locally via e.g.

mvn install -pl io.clientcore:core -am

Eventually, we either need it be published to maven, or have other alternatives so that candidate user can compile unbranded SDK without first do a local install.

Possible alternatives:

dev feed

There is an alpha build from dev feed https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-java

But currently clientcore-parent is not there.

  <repositories>
    <repository>
      <id>azure-sdk-for-java</id>
      <url>https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-java/maven/v1</url>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>io.clientcore</groupId>
      <artifactId>core</artifactId>
      <version>1.0.0-alpha.20241111.1</version> <!-- {x-version-update;io.clientcore:core;external_dependency} -->
    </dependency>
  </dependencies>
[ERROR] Failed to execute goal on project openai: Could not resolve dependencies for project io.clientcore:openai:jar:1.0.0-beta.1: Failed to collect dependencies at io.clientcore:core:jar:1.0.0-alpha.20241111.1: Failed to read artifact descriptor for io.clientcore:core:jar:1.0.0-alpha.20241111.1: Could not find artifact io.clientcore:clientcore-parent:pom:1.0.0-alpha.20241111.0 in azure-sdk-for-java (https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-java/maven/v1) -> [Help 1]

io.clientcore:core-json seems not on dev feed too.

weidongxu-microsoft commented 18 hours ago

Srikanta notified me that we plan to release clientcore in Dec.

So we no longer need to investigate about the alpha build on dev feed.