Skip to content

Commit c41bacc

Browse files
committed
use new release 1.1.1 for extension uarkus-azure-storage-blob
Signed-off-by: Jianguo Ma <[email protected]>
1 parent b371e7c commit c41bacc

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

articles/storage/blobs/storage-quickstart-blobs-java-quarkus.md

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ This section walks you through preparing a project to work with the Quarkus exte
2929

3030
### Download the sample application
3131

32-
The [sample application](https://github.com/Azure-Samples/quarkus-azure/tree/2025-01-16/storage-blob-quarkus) used in this quickstart is a basic Quarkus application.
32+
The [sample application](https://github.com/Azure-Samples/quarkus-azure/tree/2025-01-20/storage-blob-quarkus) used in this quickstart is a basic Quarkus application.
3333

3434
Use [git](https://git-scm.com/) to download a copy of the application to your development environment, and navigate to the `storage-blob-quarkus` directory.
3535

3636
```bash
3737
git clone https://github.com/Azure-Samples/quarkus-azure.git
3838
cd quarkus-azure
39-
git checkout 2025-01-16
39+
git checkout 2025-01-20
4040
cd storage-blob-quarkus
4141
```
4242

@@ -134,16 +134,47 @@ Next, you walk through the sample code to understand how it works.
134134

135135
Working with any Azure resource using the SDK begins with creating a client object. The Quarkus extension for Azure Blob Storage automatically injects a client object with authorized access using `DefaultAzureCredential`.
136136

137-
To successfully inject a client object, first you need to add the extension `quarkus-azure-storage-blob` to your `pom.xml` file as a dependency:
137+
To successfully inject a client object, first you need to add the extensions `quarkus-arc` and `quarkus-azure-storage-blob` to your `pom.xml` file as a dependencies:
138138

139139
```xml
140-
<dependency>
141-
<groupId>io.quarkiverse.azureservices</groupId>
142-
<artifactId>quarkus-azure-storage-blob</artifactId>
143-
<version>${quarkus-azure-storage-blob.version}</version>
144-
</dependency>
140+
<properties>
141+
<quarkus.platform.version>3.17.7</quarkus.platform.version>
142+
<quarkus.azure.services.version>1.1.1</quarkus.azure.services.version>
143+
</properties>
144+
145+
<dependencyManagement>
146+
<dependencies>
147+
<dependency>
148+
<groupId>io.quarkus.platform</groupId>
149+
<artifactId>quarkus-bom</artifactId>
150+
<version>${quarkus.platform.version}</version>
151+
<type>pom</type>
152+
<scope>import</scope>
153+
</dependency>
154+
<dependency>
155+
<groupId>io.quarkiverse.azureservices</groupId>
156+
<artifactId>quarkus-azure-services-bom</artifactId>
157+
<version>${quarkus.azure.services.version}</version>
158+
<type>pom</type>
159+
<scope>import</scope>
160+
</dependency>
161+
</dependencies>
162+
</dependencyManagement>
163+
164+
<dependencies>
165+
<dependency>
166+
<groupId>io.quarkus</groupId>
167+
<artifactId>quarkus-arc</artifactId>
168+
</dependency>
169+
<dependency>
170+
<groupId>io.quarkiverse.azureservices</groupId>
171+
<artifactId>quarkus-azure-storage-blob</artifactId>
172+
</dependency>
173+
</dependencies>
145174
```
146175

176+
The `quarkus-arc` extension is required to use the `@Inject` annotation to inject the client object into your application code. The `quarkus-bom` and `quarkus-azure-services-bom` dependencies are used to manage the versions of the Quarkus platform and the Quarkus extension for Azure services.
177+
147178
Next, you can inject the client object into your application code using the `@Inject` annotation:
148179

149180
```java

0 commit comments

Comments
 (0)