Skip to content

Commit 95d46b7

Browse files
committed
Merge branch 'dev' into rsh/AzureIdentityAuth
2 parents 30c6aa1 + 8adaed2 commit 95d46b7

5 files changed

Lines changed: 15 additions & 17 deletions

File tree

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ dependencies {
2727
// This dependency is exported to consumers, that is to say found on their compile classpath.
2828
api 'org.apache.commons:commons-math3:3.6.1'
2929

30-
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
31-
implementation 'com.google.guava:guava:20.0'
32-
3330
// Use JUnit test framework
3431
testImplementation 'junit:junit:4.13'
3532
//Mockito Mock framework

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph-core
2828
mavenMajorVersion = 1
2929
mavenMinorVersion = 0
30-
mavenPatchVersion = 1
30+
mavenPatchVersion = 2
3131
mavenArtifactSuffix =
3232
nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven
3333

readme.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ repository {
1919
2020
dependency {
2121
// Include the sdk as a dependency
22-
compile('com.microsoft.graph:microsoft-graph-core:1.0.1')
22+
compile('com.microsoft.graph:microsoft-graph-core:1.0.2')
2323
}
2424
```
2525

2626
### 1.2 Install via Maven
27+
2728
Add the dependency in `dependencies` in pom.xml
28-
```dependency
29+
30+
```xml
2931
<dependency>
3032
<groupId>com.microsoft.graph</groupId>
3133
<artifactId>microsoft-graph-core</artifactId>
32-
<version>1.0.1</version>
34+
<version>1.0.2</version>
3335
</dependency>
3436
```
3537

scripts/validateMavenVersion.ps1

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,24 @@
88
.Description
99
Retrieves the local, Maven, and Bintray versions of the Java-Core build.
1010
Checks that the Maven and Bintray versions are aligned, trigger warning if not.
11-
Checks that the current local version is greater than those currently deployed.
12-
.Parameter packageName
13-
The package name to search in the Maven and JCenter repositories.
11+
Checks that the current local version is greater than those currently deployed.
1412
.Parameter propertiesPath
1513
The path pointing to the Gradle.Properties file.
1614
#>
1715

18-
Param(
19-
[parameter(Mandatory = $true)]
20-
[string]$packageName,
2116

22-
[parameter(Mandatory = $true)]
17+
Param(
2318
[string]$propertiesPath
2419
)
2520

2621
#Find the local version from the Gradle.Properties file
22+
if($propertiesPath -eq "" -or $null -eq $propertiesPath) {
23+
$propertiesPath = Join-Path -Path $PSScriptRoot -ChildPath "../gradle.properties"
24+
}
2725
$file = get-item $propertiesPath
2826
$findLocalVersions = $file | Select-String -Pattern "mavenMajorVersion" -Context 0,2
2927
$findLocalVersions = $findLocalVersions -split "`r`n"
28+
$packageName = ($file | Select-String -Pattern "mavenArtifactId").Line.Split("=")[1].Trim()
3029

3130
$localMajor = $findLocalVersions[0].Substring($findLocalVersions[0].Length-1)
3231
$localMinor = $findLocalVersions[1].Substring($findLocalVersions[1].Length-1)
@@ -61,9 +60,9 @@ if($mavenVersion -ne $bintrayVersion){
6160
Write-Warning "The current Maven and Bintray versions are not the same"
6261
}
6362
#Success if Local version has been updated, Error otherwise.
64-
if($localVersion -gt $bintrayVersion){
63+
if($localVersion -gt $bintrayVersion -and $localVersion -gt $mavenVersion){
6564
Write-Host "The current pull request is of a greater version"
6665
}
6766
else{
6867
Write-Error "The current local version is not updated. Please update the local version in the Gradle.Properties file."
69-
}
68+
}

src/main/java/com/microsoft/graph/httpcore/TelemetryHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class TelemetryHandler implements Interceptor{
1212

1313
public static final String SDK_VERSION = "SdkVersion";
14-
public static final String VERSION = "v1.0.1";
14+
public static final String VERSION = "v1.0.2";
1515
public static final String GRAPH_VERSION_PREFIX = "graph-java-core";
1616
public static final String JAVA_VERSION_PREFIX = "java";
1717
public static final String CLIENT_REQUEST_ID = "client-request-id";

0 commit comments

Comments
 (0)