Skip to content

Commit 019f895

Browse files
authored
Merge pull request #1296 from microsoftgraph/dev
releases 2.0.21
2 parents 0d72a1e + 43eba0b commit 019f895

File tree

12 files changed

+63
-20
lines changed

12 files changed

+63
-20
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
run: .\scripts\getLatestVersion.ps1
106106
shell: pwsh
107107
- name: Create tag
108-
uses: rickstaa/[email protected].4
108+
uses: rickstaa/[email protected].6
109109
with:
110110
tag: ${{ steps.GetVersion.outputs.tag }}
111111
- name: Queue Git Release

.github/workflows/sonarcloud.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,24 @@ on:
88
- feature/v2
99
pull_request:
1010
types: [opened, synchronize, reopened]
11+
12+
env:
13+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
14+
1115
jobs:
16+
checksecret:
17+
name: check if SONAR_TOKEN is set in github secrets
18+
runs-on: ubuntu-latest
19+
outputs:
20+
is_SONAR_TOKEN_set: ${{ steps.checksecret_job.outputs.is_SONAR_TOKEN_set }}
21+
steps:
22+
- name: Check whether unity activation requests should be done
23+
id: checksecret_job
24+
run: |
25+
echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT
1226
build:
27+
needs: [checksecret]
28+
if: needs.checksecret.outputs.is_SONAR_TOKEN_set == 'true'
1329
name: Build
1430
runs-on: ubuntu-latest
1531
steps:
@@ -37,5 +53,4 @@ jobs:
3753
- name: Build and analyze
3854
env:
3955
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
40-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4156
run: ./gradlew build sonarqube --info

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
### Changed
13+
14+
## [2.0.21] - 2023-11-08
15+
16+
### Changed
17+
18+
- Changed CoreHttpProvider dependency from OkHttpClient to Call.Factory (parent interface implemented by OkHttpClient). This make usage of OpenTelemetry tracing possible.
19+
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/okhttp/okhttp-3.0/library/README.md
20+
21+
```java
22+
private Call.Factory createTracedClient(OpenTelemetry openTelemetry, @Nonnull final IAuthenticationProvider auth) {
23+
return OkHttpTelemetry.builder(openTelemetry).build().newCallFactory(createClient(auth));
24+
}
25+
26+
private OkHttpClient createClient(@Nonnull final IAuthenticationProvider auth) {
27+
return HttpClients.createDefault(auth);
28+
}
29+
30+
// then create the GraphServiceClient
31+
IAuthenticationProvider authenticationProvider = ...;
32+
GraphServiceClient
33+
.builder(Call.Factory.class, Request.class)
34+
.httpClient(createTracedClient(openTelemetry, authenticationProvider))
35+
.authenticationProvider(authenticationProvider)
36+
.buildClient();
37+
```
38+
1239
## [2.0.20] - 2023-10-23
1340

1441
### Changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99

1010
dependencies {
1111
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.15.1"
12-
classpath "com.android.tools.build:gradle:8.1.2"
12+
classpath "com.android.tools.build:gradle:8.1.3"
1313
classpath "com.github.ben-manes:gradle-versions-plugin:0.49.0"
1414
}
1515
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id 'maven-publish'
77
id 'signing'
88
id 'jacoco'
9-
id 'com.github.spotbugs' version '5.2.1'
9+
id 'com.github.spotbugs' version '5.2.3'
1010
id "org.sonarqube" version "4.4.1.3373"
1111
}
1212

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525
mavenArtifactId = microsoft-graph-core
2626
mavenMajorVersion = 2
2727
mavenMinorVersion = 0
28-
mavenPatchVersion = 20
28+
mavenPatchVersion = 21
2929
mavenArtifactSuffix =
3030

3131
#These values are used to run functional tests

gradle/dependencies.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
dependencies {
22
// Use JUnit test framework
3-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
4-
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.0'
5-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
3+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
4+
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.1'
5+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
66
testImplementation 'org.mockito:mockito-inline:5.2.0'
77

88
api 'com.squareup.okhttp3:okhttp:4.12.0'
99

1010
implementation 'com.google.guava:guava:32.1.3-jre'
1111

1212
implementation 'com.google.code.gson:gson:2.10.1'
13-
api 'com.azure:azure-core:1.44.1'
13+
api 'com.azure:azure-core:1.45.0'
1414

15-
api 'com.github.spotbugs:spotbugs-annotations:4.8.0'
15+
api 'com.github.spotbugs:spotbugs-annotations:4.8.1'
1616
}

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
<dependency>
3636
<groupId>com.azure</groupId>
3737
<artifactId>azure-core</artifactId>
38-
<version>1.44.1</version>
38+
<version>1.45.0</version>
3939
</dependency>
4040
<dependency>
4141
<groupId>org.junit.jupiter</groupId>
4242
<artifactId>junit-jupiter-api</artifactId>
43-
<version>5.10.0</version>
43+
<version>5.10.1</version>
4444
<scope>test</scope>
4545
</dependency>
4646
<dependency>
4747
<groupId>org.junit.jupiter</groupId>
4848
<artifactId>junit-jupiter-params</artifactId>
49-
<version>5.10.0</version>
49+
<version>5.10.1</version>
5050
<scope>test</scope>
5151
</dependency>
5252
<dependency>
@@ -58,7 +58,7 @@
5858
<dependency>
5959
<groupId>com.github.spotbugs</groupId>
6060
<artifactId>spotbugs-annotations</artifactId>
61-
<version>4.8.0</version>
61+
<version>4.8.1</version>
6262
</dependency>
6363
</dependencies>
6464
</project>

samples/deviceCodeSample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ repositories {
1212
dependencies {
1313
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
1414
implementation project(':coreLibrary')
15-
implementation 'com.azure:azure-identity:1.10.4'
15+
implementation 'com.azure:azure-identity:1.11.0'
1616
}

samples/interactiveBrowserSample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ repositories {
1212
dependencies {
1313
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
1414
implementation project(':coreLibrary')
15-
implementation 'com.azure:azure-identity:1.10.4'
15+
implementation 'com.azure:azure-identity:1.11.0'
1616
}

0 commit comments

Comments
 (0)