Skip to content

Commit b4361e8

Browse files
Merge pull request #496 from microsoftgraph/dev
Core 2.0.12
2 parents f61d598 + 938c386 commit b4361e8

33 files changed

+220
-76
lines changed

.github/workflows/api-level-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
lint-api-level:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2.4.0
19-
- uses: actions/setup-java@v2
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-java@v3
2020
with:
2121
distribution: 'adopt'
2222
java-version: 17
2323
- name: Setup Android SDK
24-
uses: android-actions/[email protected].7
24+
uses: android-actions/[email protected].8
2525
- name: Add execution right to the script
2626
run: chmod +x gradlew
2727
working-directory: ./android
@@ -31,7 +31,7 @@ jobs:
3131
working-directory: ./android
3232
- name: Upload linting results
3333
if: failure() && steps.lint.outcome == 'failure'
34-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v3
3535
with:
3636
name: lint-report
3737
path: ./android/build/reports

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
name: maven_central_snapshot
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2.4.0
23+
- uses: actions/checkout@v3
2424
- name: Easy detect-secrets
2525
uses: RobertFischer/[email protected]
2626
- name: Set up JDK
27-
uses: actions/setup-java@v2
27+
uses: actions/setup-java@v3
2828
with:
2929
java-version: 17
3030
distribution: 'adopt'
@@ -52,11 +52,11 @@ jobs:
5252
name: maven_central_release
5353
runs-on: ubuntu-latest
5454
steps:
55-
- uses: actions/checkout@v2.4.0
55+
- uses: actions/checkout@v3
5656
- name: Easy detect-secrets
5757
uses: RobertFischer/[email protected]
5858
- name: Set up JDK
59-
uses: actions/setup-java@v2
59+
uses: actions/setup-java@v3
6060
with:
6161
java-version: 17
6262
distribution: 'adopt'
@@ -78,7 +78,7 @@ jobs:
7878
- name: Publish
7979
run: ./gradlew $PUBLISH_TASK
8080
- name: Upload Build Artifact
81-
uses: actions/upload-artifact@v2.2.4
81+
uses: actions/upload-artifact@v3
8282
with:
8383
name: drop
8484
path: |
@@ -99,13 +99,13 @@ jobs:
9999
env:
100100
RELEASE_TAG: ""
101101
steps:
102-
- uses: actions/checkout@v2.4.0
102+
- uses: actions/checkout@v3
103103
- name: Get Version
104104
id: GetVersion
105105
run: .\scripts\getLatestVersion.ps1
106106
shell: pwsh
107107
- name: Create tag
108-
uses: rickstaa/[email protected].0
108+
uses: rickstaa/[email protected].2
109109
with:
110110
tag: ${{ steps.GetVersion.outputs.tag }}
111111
- name: Queue Git Release

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v2.4.0
20+
uses: actions/checkout@v3
2121
with:
2222
# We must fetch at least the immediate parents so that if this is
2323
# a pull request then we can checkout the head.
2424
fetch-depth: 2
2525

26-
- uses: actions/setup-java@v2
26+
- uses: actions/setup-java@v3
2727
with:
2828
distribution: 'adopt'
2929
java-version: 17

.github/workflows/git-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
Git_Release:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2.4.0
13+
- uses: actions/checkout@v3
1414
- name: Download Build Artifact
15-
uses: dawidd6/action-download-artifact@v2.17.0
15+
uses: dawidd6/action-download-artifact@v2.19.0
1616
with:
1717
workflow: build-and-publish.yml
1818
workflow_conclusion: success

.github/workflows/gradle-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2.4.0
18+
- uses: actions/checkout@v3
1919
- name: Set up JDK
20-
uses: actions/setup-java@v2
20+
uses: actions/setup-java@v3
2121
with:
2222
java-version: 17
2323
distribution: 'adopt'
@@ -29,7 +29,7 @@ jobs:
2929
- name: Build with Gradle
3030
run: ./gradlew build
3131
- name: Upload a Build Artifact
32-
uses: actions/upload-artifact@v2.2.4
32+
uses: actions/upload-artifact@v3
3333
with:
3434
name: drop
3535
path: |

.github/workflows/projectsbot.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# This workflow is used to add new issues to GitHub Projects (Beta)
2+
3+
name: Add PR to project
4+
on:
5+
issues:
6+
types: [opened]
7+
jobs:
8+
track_issue:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Generate token
12+
id: generate_token
13+
uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
14+
with:
15+
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
16+
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
17+
18+
- name: Get project data
19+
env:
20+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
21+
ORGANIZATION: microsoftgraph
22+
PROJECT_NUMBER: 25
23+
run: |
24+
gh api graphql -f query='
25+
query($org: String!, $number: Int!) {
26+
organization(login: $org){
27+
projectNext(number: $number) {
28+
id
29+
fields(first:20) {
30+
nodes {
31+
id
32+
name
33+
settings
34+
}
35+
}
36+
}
37+
}
38+
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
39+
40+
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
41+
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
42+
echo 'TRIAGE_OPTION_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") |.settings | fromjson.options[] | select(.name=="Needs Triage 🔍") |.id' project_data.json) >> $GITHUB_ENV
43+
44+
- name: Add Issue to project
45+
env:
46+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
47+
ISSUE_ID: ${{ github.event.issue.node_id }}
48+
run: |
49+
item_id="$( gh api graphql -f query='
50+
mutation($project:ID!, $issue:ID!) {
51+
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
52+
projectNextItem {
53+
id
54+
}
55+
}
56+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
57+
58+
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
59+
60+
- name: Set Triage
61+
env:
62+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
63+
run: |
64+
gh api graphql -f query='
65+
mutation (
66+
$project: ID!
67+
$item: ID!
68+
$status_field: ID!
69+
$status_value: String!
70+
) {
71+
set_status: updateProjectNextItemField(input: {
72+
projectId: $project
73+
itemId: $item
74+
fieldId: $status_field
75+
value: $status_value
76+
}) {
77+
projectNextItem {
78+
id
79+
}
80+
}
81+
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent

.github/workflows/sample-build-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
samples-build-check-device-code:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2.4.0
15-
- uses: actions/setup-java@v2
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-java@v3
1616
with:
1717
distribution: 'adopt'
1818
java-version: 17
@@ -25,8 +25,8 @@ jobs:
2525
samples-build-check-interactive:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v2.4.0
29-
- uses: actions/setup-java@v2
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-java@v3
3030
with:
3131
distribution: 'adopt'
3232
java-version: 17

.github/workflows/sonarcloud.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,23 @@ jobs:
1313
name: Build
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2.4.0
16+
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
19-
- name: Set up JDK 11
20-
uses: actions/setup-java@v1
19+
- name: Set up JDK
20+
uses: actions/setup-java@v3
2121
with:
22-
java-version: 11
22+
java-version: 17
23+
distribution: 'adopt'
24+
cache: gradle
2325
- name: Cache SonarCloud packages
24-
uses: actions/cache@v2.1.7
26+
uses: actions/cache@v3
2527
with:
2628
path: ~/.sonar/cache
2729
key: ${{ runner.os }}-sonar
2830
restore-keys: ${{ runner.os }}-sonar
2931
- name: Cache Gradle packages
30-
uses: actions/cache@v2.1.7
32+
uses: actions/cache@v3
3133
with:
3234
path: ~/.gradle/caches
3335
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
@@ -36,4 +38,4 @@ jobs:
3638
env:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3840
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39-
run: ./gradlew build sonarqube --info
41+
run: ./gradlew build sonarqube --info

CHANGELOG.md

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

1212
### Changed
1313

14+
## [2.0.12] - 2022-04-22
15+
16+
### Added
17+
18+
- Add ability to add custom hosts to BaseAuthenticationProvider #484
19+
20+
### Changed
21+
22+
- Bumps Azure Core to 1.27.0 #474, #473, #472
23+
- Bumps mockito-inline to 4.5.1 #494, #493, #491
24+
- Bumps gradle wrappers to 7.4.0 #454
25+
- Bumps gradle to 7.1.3 in /android #477
26+
- Bumps gradle-enterprise-gradle-plugin 3.10.0 in /android #488
27+
- Bumps dawidd6/action-download-artifact to 2.19.0 #482
28+
- Bumps com.github.spotbugs to 5.0.6 #442, #443, #444
29+
- Bumps spotbugs-annotations to 4.6.0 #460, #461
30+
- Bumps azure-identity to 1.5.0 #475, #476
31+
- Bumps actions/cache to 3.0.0 #469
32+
- Bumps actions/upload-artifact to 3.0.0 #479
33+
- Bumps actions/setup-java to 3.0.0 #478
34+
- Bumps rickstaa/action-create-tag to 1.2.2 #453
35+
- Bumps guava to 31.1-jre #451, #450, #449
36+
- Bumps gson to 2.9.0 #438, #439, #440
37+
1438
## [2.0.11] - 2022-02-04
1539

1640
### Added

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.8.1"
12-
classpath "com.android.tools.build:gradle:7.1.0"
11+
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.10"
12+
classpath "com.android.tools.build:gradle:7.1.3"
1313
classpath "com.github.ben-manes:gradle-versions-plugin:0.42.0"
1414
}
1515
}

0 commit comments

Comments
 (0)