Skip to content

Commit b96eaca

Browse files
committed
merge from mainline
1 parent 8e79572 commit b96eaca

File tree

537 files changed

+25823
-6241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

537 files changed

+25823
-6241
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# Azure SDK for Java
22

3-
[![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/17?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=17) [![Build Documentation](https://img.shields.io/badge/documentation-published-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html) [![Dependencies](https://img.shields.io/badge/dependencies-analyzed-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/dependencies.html) [![SpotBugs](https://img.shields.io/badge/SpotBugs-Clean-success.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/spotbugsXml.html) [![CheckStyle](https://img.shields.io/badge/CheckStyle-Clean-success.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/checkstyle-aggregate.html)
3+
[![Packages](https://img.shields.io/badge/packages-latest-blue.svg)](https://azure.github.io/azure-sdk/releases/latest/java.html) [![Dependencies](https://img.shields.io/badge/dependencies-analyzed-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/dependencies.html) [![Build Documentation](https://img.shields.io/badge/documentation-published-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html) [![SpotBugs](https://img.shields.io/badge/SpotBugs-Clean-success.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/spotbugsXml.html) [![CheckStyle](https://img.shields.io/badge/CheckStyle-Clean-success.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/checkstyle-aggregate.html)
44

5+
This repository is intended for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our [public developer docs](https://docs.microsoft.com/en-us/java/azure/) or our versioned [developer docs](https://azure.github.io/azure-sdk-for-java).
56

6-
This repository contains official Java libraries for Azure services. For reference documentation go to [Azure SDK for Java documentation](http://aka.ms/java-docs), and tutorials, samples, quick starts and other documentation, go to [Azure for Java Developers](https://docs.microsoft.com/java/azure/).
7+
### Important
78

8-
You can find a complete list of all the packages for these libraries [here](packages.md).
9-
10-
### Important
119
The Azure SDK team is pleased to make available the November 2019 client library General Availability (GA) release. We strongly recommend using the GA libraries in all production environments as these libraries are well tested and officially supported by Microsoft. More details, including installation instructions can be found here [here](https://azure.github.io/azure-sdk/releases/2019-11/java.html).
1210

1311
## Getting started
@@ -17,17 +15,20 @@ To get started with a specific library, see the **README.md** file located in th
1715
For tutorials, samples, quick starts and other documentation, visit [Azure for Java Developers](https://docs.microsoft.com/java/azure/).
1816

1917
### Prerequisites
18+
2019
Java 8 or later is required to use the November 2019 client libraries, otherwise Java 7 or later is required.
2120

2221
## Latest Release
22+
2323
Each service might have a number of libraries available from each of the following categories:
2424

2525
- [Client: GA November 2019 Releases](#Client-GA-November-2019-Releases)
2626
- [Client - Previous Versions](#Client-Previous-Versions)
2727
- [Management](#Management)
2828

2929
### Client: GA November 2019 Releases
30-
New wave of packages that were released in November 2019 client library as General Availability (GA) and several others that were released in **preview**. These libraries follow the [Azure SDK Design Guidelines for Java](https://azure.github.io/azure-sdk/java/guidelines/) and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features [here](sdk/core/README.md).
30+
31+
New wave of packages that were released in November 2019 client library as General Availability (GA) and several others that were released in **preview**. These libraries follow the [Azure SDK Design Guidelines for Java](https://azure.github.io/azure-sdk/java/guidelines/) and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features [here](sdk/core/README.md).
3132

3233
These libraries can be easily identified by sdk/ folder, package, and namespaces names starting with `azure-`, e.g. `azure-keyvault`.
3334

@@ -51,27 +52,33 @@ The libraries released in the November 2019 preview:
5152
> NOTE: If you need to ensure your code is ready for production use one of the stable, non-preview libraries.
5253
5354
### Client: Previous Versions
54-
Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide similar functionalities to the preview libraries, as they allow you to use and consume existing resources and interact with them, for example: upload a blob. Stable library directories start with `microsoft-azure-`, e.g. `microsoft-azure-keyvault`. They might not implement the [guidelines](https://azure.github.io/azure-sdk/java_introduction.html) or have the same feature set as the Novemeber releases. They do however offer wider coverage of services.
55+
56+
Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide similar functionalities to the preview libraries, as they allow you to use and consume existing resources and interact with them, for example: upload a blob. Stable library directories start with `microsoft-azure-`, e.g. `microsoft-azure-keyvault`. They might not implement the [guidelines](https://azure.github.io/azure-sdk/java_introduction.html) or have the same feature set as the Novemeber releases. They do however offer wider coverage of services.
5557

5658
### Management
59+
5760
Libraries which enable you to provision specific resources. They are responsible for directly mirroring and consuming Azure service's REST endpoints. Management library directories contain `-mgmt-`, e.g. `azure-mgmt-keyvault`.
5861

5962
## Need help?
63+
6064
* For reference documentation visit the [Azure SDK for Java documentation](http://aka.ms/java-docs).
6165
* For tutorials, samples, quick starts and other documentation, visit [Azure for Java Developers](https://docs.microsoft.com/java/azure/).
6266
* For build reports on code quality, test coverage, etc, visit [Azure Java SDK](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html).
6367
* File an issue via [Github Issues](https://github.com/Azure/azure-sdk-for-java/issues/new/choose).
6468
* Check [previous questions](https://stackoverflow.com/questions/tagged/azure-java-sdk) or ask new ones on StackOverflow using `azure-java-sdk` tag.
6569

6670
## Navigating the repository
71+
6772
### Master branch
6873
The master branch has the most recent code with new features and bug fixes. It does **not** represent latest released **GA** SDK. See [above](#Client-GA-November-2019-Releases) for latest **GA** release.<br/>
6974

7075
### Release branches (Release tagging)
76+
7177
For each package we release there will be a unique git tag created that contains the name and the version of the package to mark the commit of the code that produced the package. This tag will be used for servicing via hotfix branches as well as debugging the code for a particular preview or stable release version.
7278
Format of the release tags are `<package-name>_<package-version>`. For more information please see [our branching strategy](https://github.com/Azure/azure-sdk/blob/master/docs/policies/repobranching.md#release-tagging).
7379

7480
## Contributing
81+
7582
For details on contributing to this repository, see the [contributing guide](CONTRIBUTING.md).
7683

7784
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit
@@ -81,8 +88,8 @@ When you submit a pull request, a CLA-bot will automatically determine whether y
8188

8289
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
8390

91+
### Additional Helpful Links for Contributors
8492

85-
### Additional Helpful Links for Contributors
8693
Many people all over the world have helped make this project better. You'll want to check out:
8794

8895
* [What are some good first issues for new contributors to the repo?](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3A%22up+for+grabs%22)
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
[
2+
{
3+
"extension": "revapi.java",
4+
"configuration": {
5+
"filter": {
6+
"packages": {
7+
"regex": true,
8+
"exclude": [ "com\\.azure\\..+\\.implementation(\\..+)?" ]
9+
}
10+
}
11+
}
12+
},
13+
{
14+
"extension": "revapi.semver.ignore",
15+
"configuration": {
16+
"enabled": true,
17+
"versionIncreaseAllows": {
18+
"major": "breaking",
19+
"minor": "nonBreaking",
20+
"patch": "equivalent"
21+
},
22+
"passThroughDifferences": [ "java.class.nonPublicPartOfAPI" ]
23+
}
24+
},
25+
{
26+
"extension": "revapi.ignore",
27+
"configuration": [
28+
{
29+
"regex": true,
30+
"code": "java\\.missing\\.(oldClass|newClass)",
31+
"new": "missing\\-class org\\.reactivestreams\\.Publisher",
32+
"justification": "This class is part of the reactive streams initiative in Java."
33+
},
34+
{
35+
"regex": true,
36+
"code": "java\\.missing\\.(oldClass|newClass)",
37+
"new": "missing\\-class reactor\\.util\\.context\\.Context",
38+
"justification": "Reactor is allowed in the public API. Since we don't analyze dependencies, these show up as being unresolved."
39+
},
40+
{
41+
"regex": true,
42+
"code": "java\\.missing\\.(oldClass|newClass)",
43+
"new": "missing\\-class com\\.fasterxml\\.jackson\\.databind\\.ObjectMapper",
44+
"exampleUseChainInNewApi": ".*com\\.azure\\.core\\.util\\.serializer\\.JacksonAdapter.*",
45+
"justification": "We allow this in com.azure.core.util.serializer.JacksonAdapter."
46+
},
47+
{
48+
"regex": true,
49+
"code": "java\\.missing\\.(oldClass|newClass)",
50+
"new": "missing\\-class reactor\\.core(\\..+)?",
51+
"justification": "Reactor is allowed in the public API. Since we don't analyze dependencies, these show up as being unresolved."
52+
},
53+
{
54+
"regex": true,
55+
"code": "java\\.missing\\.(oldClass|newClass)",
56+
"new": "missing\\-class com\\.azure\\.core(?!\\.implementation)(\\..+)?",
57+
"justification": "com.azure.core.* classes are allowed in the public API. Since we don't analyze dependencies, these show up as being unresolved."
58+
},
59+
{
60+
"regex": true,
61+
"code": "java\\.missing\\.(oldClass|newClass)",
62+
"new": "missing\\-class (io|reactor)\\.netty\\..+",
63+
"exampleUseChainInOldApi": ".*com\\.azure\\.core\\.http\\.netty\\.NettyAsyncHttpClientBuilder.*",
64+
"justification": "Dependencies are not checked. io.netty and reactor.netty are allowed in azure-core-http-netty."
65+
},
66+
{
67+
"regex": true,
68+
"code": "java\\.missing\\.(oldClass|newClass)",
69+
"new": "missing\\-class okhttp3\\..+",
70+
"exampleUseChainInOldApi": ".*com\\.azure\\.core\\.http\\.okhttp\\.OkHttpAsyncHttpClientBuilder.*",
71+
"justification": "Dependencies are not checked. okhttp3 is allowed in azure-core-http-okhttp."
72+
},
73+
{
74+
"regex": true,
75+
"code": "java\\.missing\\.(oldClass|newClass)",
76+
"new": "missing\\-class com\\.azure\\.storage\\..+",
77+
"exampleUseChainInOldApi": ".*com\\.azure\\.storage\\..*",
78+
"justification": "Dependencies are not checked. azure-storage-common is used in the storage modules."
79+
},
80+
{
81+
"regex": true,
82+
"code": "java\\.missing\\.(oldClass|newClass)",
83+
"new": "missing\\-class ((com\\.azure\\.messaging\\.eventhubs\\.models\\..+)|(com\\.azure\\.storage\\.blob\\.BlobContainerAsyncClient))",
84+
"exampleUseChainInNewApi": ".*com\\.azure\\.messaging\\.eventhubs\\.checkpointstore\\.blob\\..*",
85+
"justification": "azure-messaging-eventhubs and azure-storage-blob are used in the Event Hubs checkpoint store."
86+
}
87+
]
88+
}
89+
]

eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@
492492
<Class name="com.azure.security.keyvault.secrets.models.KeyVaultSecret"/>
493493
<Class name="com.azure.security.keyvault.secrets.models.SecretProperties"/>
494494
<Class name="com.azure.security.keyvault.keys.models.DeletedKey"/>
495+
<Class name="com.azure.security.keyvault.keys.cryptography.SecretKey"/>
495496
<Class name="com.azure.security.keyvault.keys.models.KeyVaultKey"/>
496497
<Class name="com.azure.security.keyvault.keys.models.KeyProperties"/>
497498
<Class name="com.azure.security.keyvault.certificates.models.DeletedCertificate"/>
@@ -531,6 +532,10 @@
531532
<Class name="com.azure.security.keyvault.keys.models.ByteExtensions"/>
532533
<Method name="clone"/>
533534
</And>
535+
<And>
536+
<Class name="com.azure.security.keyvault.keys.models.KeyProperties"/>
537+
<Method name="decode"/>
538+
</And>
534539
</Or>
535540
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
536541
</Match>

eng/jacoco-test-coverage/pom.xml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
<dependency>
4040
<groupId>com.azure</groupId>
4141
<artifactId>azure-core</artifactId>
42-
<version>1.1.0</version> <!-- {x-version-update;com.azure:azure-core;current} -->
42+
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core;current} -->
4343
</dependency>
4444
<dependency>
4545
<groupId>com.azure</groupId>
4646
<artifactId>azure-core-amqp</artifactId>
47-
<version>1.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-core-amqp;current} -->
47+
<version>1.0.0-beta.9</version> <!-- {x-version-update;com.azure:azure-core-amqp;current} -->
4848
</dependency>
4949
<dependency>
5050
<groupId>com.azure</groupId>
5151
<artifactId>azure-core-http-netty</artifactId>
52-
<version>1.1.0</version> <!-- {x-version-update;com.azure:azure-core-http-netty;current} -->
52+
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core-http-netty;current} -->
5353
</dependency>
5454
<dependency>
5555
<groupId>com.azure</groupId>
@@ -70,22 +70,22 @@
7070
<dependency>
7171
<groupId>com.azure</groupId>
7272
<artifactId>azure-core-tracing-opencensus</artifactId>
73-
<version>1.0.0-beta.5</version> <!-- {x-version-update;com.azure:azure-core-tracing-opencensus;current} -->
73+
<version>1.0.0-beta.6</version> <!-- {x-version-update;com.azure:azure-core-tracing-opencensus;current} -->
7474
</dependency>
7575
<dependency>
7676
<groupId>com.azure</groupId>
7777
<artifactId>azure-data-appconfiguration</artifactId>
78-
<version>1.0.0-beta.7</version> <!-- {x-version-update;com.azure:azure-data-appconfiguration;current} -->
78+
<version>1.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-data-appconfiguration;current} -->
7979
</dependency>
8080
<dependency>
8181
<groupId>com.azure</groupId>
8282
<artifactId>azure-identity</artifactId>
83-
<version>1.0.1</version> <!-- {x-version-update;com.azure:azure-identity;current} -->
83+
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-identity;current} -->
8484
</dependency>
8585
<dependency>
8686
<groupId>com.azure</groupId>
8787
<artifactId>azure-security-keyvault-certificates</artifactId>
88-
<version>4.0.0-beta.6</version> <!-- {x-version-update;com.azure:azure-security-keyvault-certificates;current} -->
88+
<version>4.0.0-beta.7</version> <!-- {x-version-update;com.azure:azure-security-keyvault-certificates;current} -->
8989
</dependency>
9090
<dependency>
9191
<groupId>com.azure</groupId>
@@ -95,57 +95,52 @@
9595
<dependency>
9696
<groupId>com.azure</groupId>
9797
<artifactId>azure-security-keyvault-secrets</artifactId>
98-
<version>4.0.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-secrets;current} -->
98+
<version>4.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-secrets;current} -->
9999
</dependency>
100100
<dependency>
101101
<groupId>com.azure</groupId>
102102
<artifactId>azure-messaging-eventhubs</artifactId>
103-
<version>5.0.0-beta.6</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;current} -->
103+
<version>5.0.0-beta.7</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;current} -->
104104
</dependency>
105105
<dependency>
106106
<groupId>com.azure</groupId>
107107
<artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId>
108-
<version>1.0.0-beta.4</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;current} -->
108+
<version>1.0.0-beta.5</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;current} -->
109109
</dependency>
110110
<dependency>
111111
<groupId>com.azure</groupId>
112112
<artifactId>azure-storage-common</artifactId>
113-
<version>12.1.0</version> <!-- {x-version-update;com.azure:azure-storage-common;current} -->
113+
<version>12.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-common;current} -->
114114
</dependency>
115115
<dependency>
116116
<groupId>com.azure</groupId>
117117
<artifactId>azure-storage-blob</artifactId>
118-
<version>12.1.0</version> <!-- {x-version-update;com.azure:azure-storage-blob;current} -->
118+
<version>12.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-blob;current} -->
119119
</dependency>
120120
<dependency>
121121
<groupId>com.azure</groupId>
122122
<artifactId>azure-storage-blob-batch</artifactId>
123-
<version>12.1.0</version> <!-- {x-version-update;com.azure:azure-storage-blob-batch;current} -->
123+
<version>12.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-blob-batch;current} -->
124124
</dependency>
125125
<dependency>
126126
<groupId>com.azure</groupId>
127127
<artifactId>azure-storage-blob-cryptography</artifactId>
128-
<version>12.1.0</version> <!-- {x-version-update;com.azure:azure-storage-blob-cryptography;current} -->
128+
<version>12.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-blob-cryptography;current} -->
129129
</dependency>
130130
<dependency>
131131
<groupId>com.azure</groupId>
132132
<artifactId>azure-storage-file-share</artifactId>
133-
<version>12.0.0</version> <!-- {x-version-update;com.azure:azure-storage-file-share;current} -->
133+
<version>12.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-file-share;current} -->
134134
</dependency>
135135
<dependency>
136136
<groupId>com.azure</groupId>
137137
<artifactId>azure-storage-file-datalake</artifactId>
138-
<version>12.0.0-beta.7</version> <!-- {x-version-update;com.azure:azure-storage-file-datalake;current} -->
138+
<version>12.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-storage-file-datalake;current} -->
139139
</dependency>
140140
<dependency>
141141
<groupId>com.azure</groupId>
142142
<artifactId>azure-storage-queue</artifactId>
143-
<version>12.1.0</version> <!-- {x-version-update;com.azure:azure-storage-queue;current} -->
144-
</dependency>
145-
<dependency>
146-
<groupId>com.azure</groupId>
147-
<artifactId>azure-storage-queue-cryptography</artifactId>
148-
<version>12.0.0-beta.6</version> <!-- {x-version-update;com.azure:azure-storage-queue-cryptography;current} -->
143+
<version>12.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-queue;current} -->
149144
</dependency>
150145
</dependencies>
151146

0 commit comments

Comments
 (0)