Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c0a6291
- updates reference file for dependency tree
baywet Apr 27, 2021
3c3639f
- adds maven to dependabot to keep dependencies tree in sync with gradle
baywet Apr 27, 2021
1d5c5a5
- adds devx api yaml header file
baywet Apr 27, 2021
1e60057
Bump com.github.spotbugs from 4.7.0 to 4.7.1
dependabot[bot] Apr 28, 2021
e223a1d
Merge pull request #193 from microsoftgraph/dependabot/gradle/com.git…
baywet Apr 28, 2021
a6a6ee9
Merge pull request #192 from microsoftgraph/feature/devx-dashboard
baywet Apr 29, 2021
1a3e08c
- fixes #194 and replaces the azure identity dependency by azure core
baywet Apr 30, 2021
8eb2d06
- updates pom.xml to match updated depdencies
baywet Apr 30, 2021
31ea40a
- bumps patch version
baywet Apr 30, 2021
2b5ce3f
- typo fix
baywet Apr 30, 2021
c6a1be1
- switches code sample to groovy
baywet Apr 30, 2021
29377df
- updates jacoco version to remove snapshot reference since it was re…
baywet May 10, 2021
063d2ef
- fixes #196 a bug where delta tokens would not be extracted properly
baywet May 10, 2021
717a84e
Merge pull request #195 from microsoftgraph/bugfix/azure-core-dep
baywet May 10, 2021
314a52a
Merge pull request #197 from microsoftgraph/bugfix/delta-regex
baywet May 10, 2021
e33ec2d
Bump azure-core from 1.15.0 to 1.16.0
dependabot[bot] May 11, 2021
d4d2d1e
Merge pull request #198 from microsoftgraph/dependabot/gradle/com.azu…
baywet May 11, 2021
8cd455b
Bump azure-core from 1.15.0 to 1.16.0
dependabot[bot] May 11, 2021
45ebee1
Merge pull request #199 from microsoftgraph/dependabot/maven/com.azur…
baywet May 11, 2021
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
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
id 'maven-publish'
id 'signing'
id 'jacoco'
id 'com.github.spotbugs' version '4.7.0'
id 'com.github.spotbugs' version '4.7.1'
}

java {
Expand All @@ -30,7 +30,7 @@ jacocoTestReport {
}

jacoco {
toolVersion = "0.8.7-SNAPSHOT" //https://github.com/gradle/gradle/issues/15038
toolVersion = "0.8.7"
}

spotbugsMain {
Expand Down
6 changes: 6 additions & 0 deletions devx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
languages:
- java
extensions:
services:
- Microsoft Graph
dependencyFile: /gradle/dependencies.gradle
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mavenGroupId = com.microsoft.graph
mavenArtifactId = microsoft-graph-core
mavenMajorVersion = 2
mavenMinorVersion = 0
mavenPatchVersion = 1
mavenPatchVersion = 2
mavenArtifactSuffix =

#These values are used to run functional tests
Expand Down
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ dependencies {
implementation 'com.google.guava:guava:30.1.1-jre'

implementation 'com.google.code.gson:gson:2.8.6'
api 'com.azure:azure-identity:1.2.5'
api 'com.azure:azure-core:1.16.0'
}
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph-core</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<packaging>pom</packaging>

<properties>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
<version>30.1.1-jre</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
Expand All @@ -34,19 +34,19 @@
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.2.0</version>
<artifactId>azure-core</artifactId>
<version>1.16.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.5.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.8.0</version>
<artifactId>mockito-inline</artifactId>
<version>3.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
17 changes: 12 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ Get started with the Microsoft Graph Core SDK for Java by integrating the [Micro

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

```gradle
```groovy
repositories {
mavenCentral()
}

dependencies {
// Include the sdk as a dependency
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.1'
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.2'
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
implementation 'com.azure:azure-identity:1.2.5'
}
```

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

```xml
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph-core</artifactId>
<version>2.0.1</version>
<!-- Include the sdk as a dependency -->
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph-core</artifactId>
<version>2.0.2</version>
<!-- 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>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected void addDeltaTokenOption(@Nonnull final String value, @Nonnull final S
* ?token=thetoken (onedrive)
* delta(token='thetoken') (formal OData function usage)
*/
private static Pattern pattern = Pattern.compile("(?i)(?>\\$?delta)?token=['\"]?([\\w-\\.]+)");
private static Pattern pattern = Pattern.compile("(?>[$]?delta)?token=['\"]?([\\w\\-\\.]+)", Pattern.CASE_INSENSITIVE);
/**
* Gets the delta token from the delta link provided by the previous response
* @param deltaLink the delta link provided by the previous request
Expand All @@ -91,9 +91,9 @@ protected void addDeltaTokenOption(@Nonnull final String value, @Nonnull final S
protected String getDeltaTokenFromLink(@Nonnull final String deltaLink) {
Objects.requireNonNull(deltaLink, "parameter deltaLink cannot be null");
final Matcher matcher = pattern.matcher(deltaLink);
if(matcher.matches()) {
if(matcher.find()) {
return matcher.group(1);
}
return "";
return "";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class TelemetryHandler implements Interceptor{
/**
* Current SDK version
*/
public static final String VERSION = "v2.0.1";
public static final String VERSION = "v2.0.2";
/**
* Verion prefix
*/
Expand Down