Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion 10 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Get started with the Microsoft Graph SDK for Java by integrating the [Microsoft

Add the repository and a compile dependency for `microsoft-graph-beta` to your project's `build.gradle`:

```gradle
```Groovy
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
Expand All @@ -22,6 +22,8 @@ dependencies {
implementation 'com.microsoft.graph:microsoft-graph-beta:0.15.0-SNAPSHOT'
// Uncomment the line below if you are building an android application
//implementation 'com.google.guava:guava:30.1.1-android'
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: TokenCrendentialAuthProvider or TokenCredentialAuthProvider, same as line 41

implementation 'com.azure:azure-identity:1.2.5'
}
```

Expand All @@ -35,6 +37,12 @@ Add the dependency in `dependencies` in pom.xml
<artifactId>microsoft-graph-beta</artifactId>
<version>0.15.0-SNAPSHOT</version>
</dependency>
<dependency>
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.2.5</version>
</dependency>
```

Add the repository in `repositories` in pom.xml
Expand Down
8 changes: 7 additions & 1 deletion 8 Scripts/incrementMinorVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@

function Update-ReadmeVersion([string]$readmeFilePath, [version]$version) {
$readmeFileContent = Get-Content -Path $readmeFilePath -Raw
$readmeFileContent = $readmeFileContent -replace "\d{1,}\.\d{1,}\.\d{1,}", $version.ToString()
$gradlePrefix = "graph"
$readmeFileContent = $readmeFileContent -replace "$($gradlePrefix):\d{1,}\.\d{1,}\.\d{1,}", "$($gradlePrefix):$($version.ToString())"
$gradleLineNumber = Select-String -Path $readmeFilePath -Pattern "```xml" | Select-Object -ExpandProperty LineNumber;
$gradleLineNumber+= 4 # skipping triple tick, block open, comment, groupid, artifactid
$readmeLines = $readmeFileContent -split "`n"
$readmeLines[$gradleLineNumber] = $readmeLines[$gradleLineNumber] -replace "\d{1,}\.\d{1,}\.\d{1,}", $version.ToString()
$readmeFileContent = $readmeLines -join "`n"
Set-Content -Path $readmeFilePath $readmeFileContent
}

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.