Skip to content
Open
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ The Microsoft Graph SDK is open for contribution. To contribute to this project,

The Microsoft Graph SDK for Java library is supported at runtime for Java 8 and [Android API revision 26](http://source.android.com/source/build-numbers.html) or greater.

Android builds require `compileSdk` 37 or later, Android Gradle Plugin 9.1.1 or later with JDK 17 or later, and AndroidX enabled with `android.useAndroidX=true` in `gradle.properties`.

Use a repository that serves Gradle module metadata so the Android OkHttp variant is selected. If only Maven POM metadata is available, exclude the transitive `okhttp-jvm` dependency and add `okhttp-android` explicitly.

## 7. License

Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MIT license](LICENSE).
Expand Down
19 changes: 9 additions & 10 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

dependencies {
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.19.2"
classpath "com.android.tools.build:gradle:8.13.0"
classpath "com.android.tools.build:gradle:9.2.1"
classpath "com.github.ben-manes:gradle-versions-plugin:0.54.0"
}
}
Expand Down Expand Up @@ -52,7 +52,7 @@ android {
checkAllWarnings true
warningsAsErrors true
lintConfig file("lint.xml")
disable 'AndroidGradlePluginVersion' // We will not be upgrading gradle to version 9 as it does not support our minimum required version of jdk8
disable 'AndroidGradlePluginVersion'
}

sourceSets {
Expand All @@ -77,14 +77,13 @@ dependencies {
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.13.0'
implementation 'com.auth0:jwks-rsa:0.24.2'

api 'com.squareup.okhttp3:okhttp:4.12.0'
api 'com.azure:azure-core:1.61.0'

api 'com.microsoft.kiota:microsoft-kiota-abstractions:1.10.5'
api 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.10.5'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.10.5'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.10.5'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.10.5'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.10.5'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.10.5'
api 'com.microsoft.kiota:microsoft-kiota-abstractions:2.0.0'
api 'com.microsoft.kiota:microsoft-kiota-authentication-azure:2.0.0'
api 'com.microsoft.kiota:microsoft-kiota-http-okHttp:2.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:2.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:2.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:2.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:2.0.0'
}
1 change: 1 addition & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
org.gradle.jvmargs=-Xmx2g
org.gradle.parallel=true
org.gradle.caching=true
android.useAndroidX=true

mavenGroupId = com.microsoft.graph
mavenArtifactId = microsoft-graph-core
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 1 addition & 3 deletions android/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
<issue id="LambdaLast">
<ignore path="../src/main/java/com/microsoft/graph/core/requests/GraphClientFactory.java" />
</issue>
<!-- okhttp (v5) and jakarta.annotation-api (v3) major bumps are intentionally deferred; ignore newer-version lint warnings for them -->
<!-- The jakarta.annotation-api v3 major bump is intentionally deferred. -->
<issue id="GradleDependency">
<ignore regexp="okhttp" />
<ignore regexp="jakarta" />
</issue>
<issue id="NewerVersionAvailable">
<ignore regexp="okhttp" />
<ignore regexp="jakarta" />
</issue>
</lint>
11 changes: 2 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@
<jakarta-annotation.version>2.1.1</jakarta-annotation.version>
<jjwt.version>0.13.0</jjwt.version>
<jwks-rsa.version>0.24.2</jwks-rsa.version>
<okhttp.version>4.12.0</okhttp.version>
<azure-core.version>1.61.0</azure-core.version>
<kiota.version>1.10.4</kiota.version>
<kiota.version>2.0.0</kiota.version>

<!-- Test dependency versions -->
<junit.version>6.1.0</junit.version>
<mockito.version>5.23.0</mockito.version>
<opentelemetry.version>1.63.0</opentelemetry.version>
<opentelemetry.version>1.68.0</opentelemetry.version>
<std-uritemplate.version>1.0.6</std-uritemplate.version>

<!-- Plugin versions -->
Expand Down Expand Up @@ -150,12 +149,6 @@
<version>${jwks-rsa.version}</version>
</dependency>

<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp.version}</version>
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
Expand Down