Skip to content

Commit e357282

Browse files
authored
Merge pull request #200 from microsoftgraph/dev
2.0.2 release
2 parents b371c92 + 45ebee1 commit e357282

File tree

9 files changed

+38
-20
lines changed

9 files changed

+38
-20
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ updates:
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 10
8+
- package-ecosystem: maven
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10
813
- package-ecosystem: github-actions
914
directory: "/"
1015
schedule:

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
id 'maven-publish'
1515
id 'signing'
1616
id 'jacoco'
17-
id 'com.github.spotbugs' version '4.7.0'
17+
id 'com.github.spotbugs' version '4.7.1'
1818
}
1919

2020
java {
@@ -30,7 +30,7 @@ jacocoTestReport {
3030
}
3131

3232
jacoco {
33-
toolVersion = "0.8.7-SNAPSHOT" //https://github.com/gradle/gradle/issues/15038
33+
toolVersion = "0.8.7"
3434
}
3535

3636
spotbugsMain {

devx.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
languages:
2+
- java
3+
extensions:
4+
services:
5+
- Microsoft Graph
6+
dependencyFile: /gradle/dependencies.gradle

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
2525
mavenArtifactId = microsoft-graph-core
2626
mavenMajorVersion = 2
2727
mavenMinorVersion = 0
28-
mavenPatchVersion = 1
28+
mavenPatchVersion = 2
2929
mavenArtifactSuffix =
3030

3131
#These values are used to run functional tests

gradle/dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ dependencies {
99
implementation 'com.google.guava:guava:30.1.1-jre'
1010

1111
implementation 'com.google.code.gson:gson:2.8.6'
12-
api 'com.azure:azure-identity:1.2.5'
12+
api 'com.azure:azure-core:1.16.0'
1313
}

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<groupId>com.microsoft.graph</groupId>
1010
<artifactId>microsoft-graph-core</artifactId>
11-
<version>2.0.1</version>
11+
<version>2.0.2</version>
1212
<packaging>pom</packaging>
1313

1414
<properties>
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>com.google.guava</groupId>
2727
<artifactId>guava</artifactId>
28-
<version>30.1-jre</version>
28+
<version>30.1.1-jre</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>com.squareup.okhttp3</groupId>
@@ -34,19 +34,19 @@
3434
</dependency>
3535
<dependency>
3636
<groupId>com.azure</groupId>
37-
<artifactId>azure-identity</artifactId>
38-
<version>1.2.0</version>
37+
<artifactId>azure-core</artifactId>
38+
<version>1.16.0</version>
3939
</dependency>
4040
<dependency>
4141
<groupId>org.junit.jupiter</groupId>
4242
<artifactId>junit-jupiter-api</artifactId>
43-
<version>5.5.2</version>
43+
<version>5.7.1</version>
4444
<scope>test</scope>
4545
</dependency>
4646
<dependency>
4747
<groupId>org.mockito</groupId>
48-
<artifactId>mockito-core</artifactId>
49-
<version>3.8.0</version>
48+
<artifactId>mockito-inline</artifactId>
49+
<version>3.9.0</version>
5050
<scope>test</scope>
5151
</dependency>
5252
</dependencies>

readme.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ Get started with the Microsoft Graph Core SDK for Java by integrating the [Micro
1313

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

16-
```gradle
16+
```groovy
1717
repositories {
1818
mavenCentral()
1919
}
2020
2121
dependencies {
2222
// Include the sdk as a dependency
23-
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.1'
23+
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.2'
24+
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
25+
implementation 'com.azure:azure-identity:1.2.5'
2426
}
2527
```
2628

@@ -30,9 +32,14 @@ Add the dependency in `dependencies` in pom.xml
3032

3133
```xml
3234
<dependency>
33-
<groupId>com.microsoft.graph</groupId>
34-
<artifactId>microsoft-graph-core</artifactId>
35-
<version>2.0.1</version>
35+
<!-- Include the sdk as a dependency -->
36+
<groupId>com.microsoft.graph</groupId>
37+
<artifactId>microsoft-graph-core</artifactId>
38+
<version>2.0.2</version>
39+
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
40+
<groupId>com.azure</groupId>
41+
<artifactId>azure-identity</artifactId>
42+
<version>1.2.5</version>
3643
</dependency>
3744
```
3845

src/main/java/com/microsoft/graph/http/BaseDeltaCollectionRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected void addDeltaTokenOption(@Nonnull final String value, @Nonnull final S
8181
* ?token=thetoken (onedrive)
8282
* delta(token='thetoken') (formal OData function usage)
8383
*/
84-
private static Pattern pattern = Pattern.compile("(?i)(?>\\$?delta)?token=['\"]?([\\w-\\.]+)");
84+
private static Pattern pattern = Pattern.compile("(?>[$]?delta)?token=['\"]?([\\w\\-\\.]+)", Pattern.CASE_INSENSITIVE);
8585
/**
8686
* Gets the delta token from the delta link provided by the previous response
8787
* @param deltaLink the delta link provided by the previous request
@@ -91,9 +91,9 @@ protected void addDeltaTokenOption(@Nonnull final String value, @Nonnull final S
9191
protected String getDeltaTokenFromLink(@Nonnull final String deltaLink) {
9292
Objects.requireNonNull(deltaLink, "parameter deltaLink cannot be null");
9393
final Matcher matcher = pattern.matcher(deltaLink);
94-
if(matcher.matches()) {
94+
if(matcher.find()) {
9595
return matcher.group(1);
9696
}
97-
return "";
97+
return "";
9898
}
9999
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class TelemetryHandler implements Interceptor{
2525
/**
2626
* Current SDK version
2727
*/
28-
public static final String VERSION = "v2.0.1";
28+
public static final String VERSION = "v2.0.2";
2929
/**
3030
* Verion prefix
3131
*/

0 commit comments

Comments
 (0)