Skip to content

Commit e08fff1

Browse files
authored
Merge pull request #1480 from microsoftgraph/release/v3
handles merge conflicts for release
2 parents fb029f8 + 94f10e5 commit e08fff1

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@ updates:
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 10
8+
groups:
9+
kiota-dependencies:
10+
patterns:
11+
- "*kiota*"
812
- package-ecosystem: gradle
913
directory: "/android"
1014
schedule:
1115
interval: daily
1216
open-pull-requests-limit: 10
17+
groups:
18+
kiota-dependencies:
19+
patterns:
20+
- "*kiota*"
1321
- package-ecosystem: gradle
1422
directory: "/samples/deviceCodeSample"
1523
schedule:
@@ -25,6 +33,10 @@ updates:
2533
schedule:
2634
interval: daily
2735
open-pull-requests-limit: 10
36+
groups:
37+
kiota-dependencies:
38+
patterns:
39+
- "*kiota*"
2840
- package-ecosystem: github-actions
2941
directory: "/"
3042
schedule:
@@ -36,18 +48,30 @@ updates:
3648
schedule:
3749
interval: daily
3850
open-pull-requests-limit: 10
51+
groups:
52+
kiota-dependencies:
53+
patterns:
54+
- "*kiota*"
3955
- package-ecosystem: gradle
4056
directory: "/android"
4157
target-branch: v3/longTermBranch
4258
schedule:
4359
interval: daily
4460
open-pull-requests-limit: 10
61+
groups:
62+
kiota-dependencies:
63+
patterns:
64+
- "*kiota*"
4565
- package-ecosystem: maven
4666
directory: "/"
4767
target-branch: v3/longTermBranch
4868
schedule:
4969
interval: daily
5070
open-pull-requests-limit: 10
71+
groups:
72+
kiota-dependencies:
73+
patterns:
74+
- "*kiota*"
5175
- package-ecosystem: github-actions
5276
directory: "/"
5377
target-branch: v3/longTermBranch

.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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
112112
- GraphClientFactory to handle OkHttp client creation.
113113
- BaseClient refactored to use Kiota framework.
114114

115+
## [2.0.21] - 2023-11-08
116+
117+
### Changed
118+
119+
- Changed CoreHttpProvider dependency from OkHttpClient to Call.Factory (parent interface implemented by OkHttpClient). This make usage of OpenTelemetry tracing possible.
120+
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/okhttp/okhttp-3.0/library/README.md
121+
122+
```java
123+
private Call.Factory createTracedClient(OpenTelemetry openTelemetry, @Nonnull final IAuthenticationProvider auth) {
124+
return OkHttpTelemetry.builder(openTelemetry).build().newCallFactory(createClient(auth));
125+
}
126+
127+
private OkHttpClient createClient(@Nonnull final IAuthenticationProvider auth) {
128+
return HttpClients.createDefault(auth);
129+
}
130+
131+
// then create the GraphServiceClient
132+
IAuthenticationProvider authenticationProvider = ...;
133+
GraphServiceClient
134+
.builder(Call.Factory.class, Request.class)
135+
.httpClient(createTracedClient(openTelemetry, authenticationProvider))
136+
.authenticationProvider(authenticationProvider)
137+
.buildClient();
138+
```
139+
140+
## [2.0.20] - 2023-10-23
141+
142+
### Changed
143+
144+
- Updates Okhttp3 to avoid transient vulnerabilty. [#1038](https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/1038)
145+
115146
## [2.0.19] - 2023-06-20
116147

117148
### Changed

0 commit comments

Comments
 (0)