diff --git a/README.md b/README.md
index cd41f6f274b..a5fdad036ab 100644
--- a/README.md
+++ b/README.md
@@ -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' }
}
@@ -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
+ implementation 'com.azure:azure-identity:1.2.5'
}
```
@@ -35,6 +37,12 @@ Add the dependency in `dependencies` in pom.xml
microsoft-graph-beta
0.15.0-SNAPSHOT
+
+
+ com.azure
+ azure-identity
+ 1.2.5
+
```
Add the repository in `repositories` in pom.xml
diff --git a/Scripts/incrementMinorVersion.ps1 b/Scripts/incrementMinorVersion.ps1
index 2f455fb2766..068cdd5d15c 100644
--- a/Scripts/incrementMinorVersion.ps1
+++ b/Scripts/incrementMinorVersion.ps1
@@ -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
}