Skip to content

Commit cbba414

Browse files
authored
Prepare Core Libraries for August 2021 Release (Azure#23380)
Prepare Core Libraries for August 2021 Release
1 parent 822d4e1 commit cbba414

File tree

51 files changed

+454
-269
lines changed

Some content is hidden

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

51 files changed

+454
-269
lines changed

eng/code-quality-reports/src/main/resources/revapi/revapi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,11 @@
634634
"old": "field com.azure.core.util.tracing.Tracer.DIAGNOSTIC_ID_KEY",
635635
"new": "field com.azure.core.util.tracing.Tracer.DIAGNOSTIC_ID_KEY",
636636
"justification": "Old field value spelled incorrectly and was used in preview version of tracing package"
637+
},
638+
{
639+
"code": "java.method.added",
640+
"new":"method void com.azure.core.http.HttpHeaders::<init>(int)",
641+
"justification": "New HttpHeaders constructor exported from azure-core."
637642
}
638643
]
639644
}

eng/jacoco-test-coverage/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<dependency>
110110
<groupId>com.azure</groupId>
111111
<artifactId>azure-core</artifactId>
112-
<version>1.19.0-beta.2</version> <!-- {x-version-update;com.azure:azure-core;current} -->
112+
<version>1.19.0</version> <!-- {x-version-update;com.azure:azure-core;current} -->
113113
</dependency>
114114
<dependency>
115115
<groupId>com.azure</groupId>
@@ -134,17 +134,17 @@
134134
<dependency>
135135
<groupId>com.azure</groupId>
136136
<artifactId>azure-core-http-netty</artifactId>
137-
<version>1.11.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core-http-netty;current} -->
137+
<version>1.10.2</version> <!-- {x-version-update;com.azure:azure-core-http-netty;current} -->
138138
</dependency>
139139
<dependency>
140140
<groupId>com.azure</groupId>
141141
<artifactId>azure-core-http-okhttp</artifactId>
142-
<version>1.8.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;current} -->
142+
<version>1.7.2</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;current} -->
143143
</dependency>
144144
<dependency>
145145
<groupId>com.azure</groupId>
146146
<artifactId>azure-core-management</artifactId>
147-
<version>1.4.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core-management;current} -->
147+
<version>1.4.0</version> <!-- {x-version-update;com.azure:azure-core-management;current} -->
148148
</dependency>
149149
<dependency>
150150
<groupId>com.azure</groupId>
@@ -154,12 +154,12 @@
154154
<dependency>
155155
<groupId>com.azure</groupId>
156156
<artifactId>azure-core-serializer-json-gson</artifactId>
157-
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core-serializer-json-gson;current} -->
157+
<version>1.1.5</version> <!-- {x-version-update;com.azure:azure-core-serializer-json-gson;current} -->
158158
</dependency>
159159
<dependency>
160160
<groupId>com.azure</groupId>
161161
<artifactId>azure-core-serializer-json-jackson</artifactId>
162-
<version>1.3.0-beta.1</version> <!-- {x-version-update;com.azure:azure-core-serializer-json-jackson;current} -->
162+
<version>1.2.6</version> <!-- {x-version-update;com.azure:azure-core-serializer-json-jackson;current} -->
163163
</dependency>
164164
<dependency>
165165
<groupId>com.azure</groupId>

eng/versioning/version_client.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ com.azure:azure-communication-identity;1.1.1;1.2.0-beta.1
5959
com.azure:azure-communication-phonenumbers;1.0.3;1.1.0-beta.1
6060
com.azure:azure-containers-containerregistry;1.0.0-beta.3;1.0.0-beta.4
6161
com.azure:azure-containers-containerregistry-perf;1.0.0-beta.1;1.0.0-beta.1
62-
com.azure:azure-core;1.18.0;1.19.0-beta.2
62+
com.azure:azure-core;1.18.0;1.19.0
6363
com.azure:azure-core-amqp;2.3.0;2.4.0-beta.1
6464
com.azure:azure-core-amqp-experimental;1.0.0-beta.1;1.0.0-beta.1
6565
com.azure:azure-core-experimental;1.0.0-beta.15;1.0.0-beta.16
6666
com.azure:azure-core-http-jdk-httpclient;1.0.0-beta.1;1.0.0-beta.1
67-
com.azure:azure-core-http-netty;1.10.1;1.11.0-beta.1
68-
com.azure:azure-core-http-okhttp;1.7.1;1.8.0-beta.1
69-
com.azure:azure-core-management;1.3.1;1.4.0-beta.1
67+
com.azure:azure-core-http-netty;1.10.1;1.10.2
68+
com.azure:azure-core-http-okhttp;1.7.1;1.7.2
69+
com.azure:azure-core-management;1.3.1;1.4.0
7070
com.azure:azure-core-serializer-avro-apache;1.0.0-beta.12;1.0.0-beta.13
7171
com.azure:azure-core-serializer-avro-jackson;1.0.0-beta.1;1.0.0-beta.2
72-
com.azure:azure-core-serializer-json-gson;1.1.4;1.2.0-beta.1
73-
com.azure:azure-core-serializer-json-jackson;1.2.5;1.3.0-beta.1
74-
com.azure:azure-core-test;1.6.4;1.7.0-beta.1
72+
com.azure:azure-core-serializer-json-gson;1.1.4;1.1.5
73+
com.azure:azure-core-serializer-json-jackson;1.2.5;1.2.6
74+
com.azure:azure-core-test;1.6.4;1.7.0
7575
com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.12;1.0.0-beta.13
7676
com.azure:azure-cosmos;4.17.0;4.18.0-beta.1
7777
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
@@ -318,9 +318,9 @@ com.azure.resourcemanager:azure-resourcemanager-azurearcdata;1.0.0-beta.1;1.0.0-
318318
# note: The unreleased dependencies will not be manipulated with the automatic PR creation code.
319319
# In the pom, the version update tag after the version should name the unreleased package and the dependency version:
320320
# <!-- {x-version-update;unreleased_com.azure:azure-core;dependency} -->
321-
unreleased_com.azure:azure-core;1.19.0-beta.2
321+
unreleased_com.azure:azure-core;1.19.0
322322
unreleased_com.azure:azure-core-amqp;2.4.0-beta.1
323-
unreleased_com.azure:azure-core-test;1.7.0-beta.1
323+
unreleased_com.azure:azure-core-test;1.7.0
324324

325325
# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
326326
# version and set the version to the released beta. Released beta dependencies are only valid

sdk/core/azure-core-amqp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<dependency>
5959
<groupId>com.azure</groupId>
6060
<artifactId>azure-core</artifactId>
61-
<version>1.19.0-beta.2</version> <!-- {x-version-update;com.azure:azure-core;current} -->
61+
<version>1.19.0</version> <!-- {x-version-update;com.azure:azure-core;current} -->
6262
</dependency>
6363
<dependency>
6464
<groupId>com.microsoft.azure</groupId>

sdk/core/azure-core-experimental/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Release History
22

3-
## 1.0.0-beta.16 (Unreleased)
3+
## 1.0.0-beta.16 (2021-08-06)
44

5+
### Features Added
6+
7+
- Added `TimeInterval` to support ISO8601 time intervals.
8+
9+
### Dependency Updates
10+
11+
- Upgraded `azure-core` from `1.18.0` to `1.19.0`.
512

613
## 1.0.0-beta.15 (2021-07-01)
714

sdk/core/azure-core-experimental/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Azure Core Experimental contains types that are being evaluated and might eventu
1717
<dependency>
1818
<groupId>com.azure</groupId>
1919
<artifactId>azure-core-experimental</artifactId>
20-
<version>1.0.0-beta.15</version>
20+
<version>1.0.0-beta.16</version>
2121
</dependency>
2222
```
2323
[//]: # ({x-version-update-end})

sdk/core/azure-core-experimental/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<dependency>
6161
<groupId>com.azure</groupId>
6262
<artifactId>azure-core</artifactId>
63-
<version>1.19.0-beta.2</version> <!-- {x-version-update;com.azure:azure-core;current} -->
63+
<version>1.19.0</version> <!-- {x-version-update;com.azure:azure-core;current} -->
6464
</dependency>
6565

6666
<dependency>
@@ -125,6 +125,7 @@
125125
<configuration>
126126
<argLine>
127127
--add-opens com.azure.core.experimental/com.azure.core.experimental.http=ALL-UNNAMED
128+
--add-opens com.azure.core.experimental/com.azure.core.experimental.models=ALL-UNNAMED
128129
</argLine>
129130
</configuration>
130131
</plugin>

sdk/core/azure-core-experimental/src/main/java/com/azure/core/experimental/models/TimeInterval.java

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@ public final class TimeInterval {
3131

3232
private static final ClientLogger LOGGER = new ClientLogger(TimeInterval.class);
3333
private static final String ERROR_MESSAGE = "%s is an invalid time interval. It must be in one of the "
34-
+ "following ISO 8601 time interval formats: duration, startDuration/endTime, "
35-
+ "startTime/endTime, startTime/endDuration";
34+
+ "following ISO 8601 time interval formats: duration, startDuration/endTime, "
35+
+ "startTime/endTime, startTime/endDuration";
3636

3737
private final Duration duration;
3838
private final OffsetDateTime startTime;
3939
private final OffsetDateTime endTime;
4040

4141
/**
42-
* Creates an instance of {@link TimeInterval} using the provided duration. The duration is the interval that
43-
* starts from the provided duration and ends at the current time.
42+
* Creates an instance of {@link TimeInterval} using the provided duration. The duration is the interval that starts
43+
* from the provided duration and ends at the current time.
44+
*
4445
* @param duration the duration for this query time span.
4546
*/
4647
public TimeInterval(Duration duration) {
@@ -51,6 +52,7 @@ public TimeInterval(Duration duration) {
5152

5253
/**
5354
* Creates an instance of {@link TimeInterval} using the start and end {@link OffsetDateTime OffsetDateTimes}.
55+
*
5456
* @param startTime The start time of the interval.
5557
* @param endTime The end time of the interval.
5658
*/
@@ -62,6 +64,7 @@ public TimeInterval(OffsetDateTime startTime, OffsetDateTime endTime) {
6264

6365
/**
6466
* Creates an instance of {@link TimeInterval} using the start and end duration of the interval.
67+
*
6568
* @param startTime The start time of the interval.
6669
* @param duration The end duration of the interval.
6770
*/
@@ -73,6 +76,7 @@ public TimeInterval(OffsetDateTime startTime, Duration duration) {
7376

7477
/**
7578
* Creates an instance of {@link TimeInterval} using the start and end duration of the interval.
79+
*
7680
* @param duration The duration of the interval.
7781
* @param endTime The end time of the interval.
7882
*/
@@ -84,6 +88,7 @@ public TimeInterval(OffsetDateTime startTime, Duration duration) {
8488

8589
/**
8690
* Returns the duration of this {@link TimeInterval} instance.
91+
*
8792
* @return the duration of this {@link TimeInterval} instance.
8893
*/
8994
public Duration getDuration() {
@@ -92,6 +97,7 @@ public Duration getDuration() {
9297

9398
/**
9499
* Returns the start time of this {@link TimeInterval} instance.
100+
*
95101
* @return the start time of this {@link TimeInterval} instance.
96102
*/
97103
public OffsetDateTime getStartTime() {
@@ -108,6 +114,7 @@ public OffsetDateTime getStartTime() {
108114

109115
/**
110116
* Returns the end time of this {@link TimeInterval} instance.
117+
*
111118
* @return the end time of this {@link TimeInterval} instance.
112119
*/
113120
public OffsetDateTime getEndTime() {
@@ -122,6 +129,7 @@ public OffsetDateTime getEndTime() {
122129

123130
/**
124131
* Returns this {@link TimeInterval} in ISO 8601 string format.
132+
*
125133
* @return ISO 8601 formatted string representation of this {@link TimeInterval} instance.
126134
*/
127135
public String toIso8601Format() {
@@ -142,6 +150,7 @@ public String toIso8601Format() {
142150

143151
/**
144152
* This method takes an ISO 8601 formatted time interval string and returns an instance of {@link TimeInterval}.
153+
*
145154
* @param value The ISO 8601 formatted time interval string.
146155
* @return An instance of {@link TimeInterval}.
147156
* @throws IllegalArgumentException if {@code value} is not in the correct format.
@@ -156,7 +165,7 @@ public static TimeInterval parse(String value) {
156165
if (duration == null || parts[0].length() + 1 == value.length()) {
157166
// input strings like "PT24H/" are invalid
158167
throw LOGGER.logExceptionAsError(
159-
new IllegalArgumentException(String.format(ERROR_MESSAGE, value)));
168+
new IllegalArgumentException(String.format(ERROR_MESSAGE, value)));
160169
}
161170

162171
return new TimeInterval(duration);
@@ -180,7 +189,7 @@ public static TimeInterval parse(String value) {
180189
}
181190
}
182191
throw LOGGER.logExceptionAsError(
183-
new IllegalArgumentException(String.format(ERROR_MESSAGE, value)));
192+
new IllegalArgumentException(String.format(ERROR_MESSAGE, value)));
184193
}
185194

186195
@Override
@@ -224,8 +233,8 @@ public boolean equals(Object o) {
224233
TimeInterval that = (TimeInterval) o;
225234

226235
return Objects.equals(this.duration, that.duration)
227-
&& Objects.equals(this.startTime, that.startTime)
228-
&& Objects.equals(this.endTime, that.endTime);
236+
&& Objects.equals(this.startTime, that.startTime)
237+
&& Objects.equals(this.endTime, that.endTime);
229238
}
230239

231240
@Override

0 commit comments

Comments
 (0)