microsoftgraph / msgraph-sdk-java

Microsoft Graph SDK for Java
https://docs.microsoft.com/en-us/graph/sdks/sdks-overview
MIT License
387 stars 132 forks source link

Issues with the imports related to com.microsoft.graph after latest updates i.e. 6.1.X #1838

Closed ashwani945 closed 8 months ago

ashwani945 commented 8 months ago

These are the following imports that's throwing error after version 6.1.X of com.microsoft.graph groupid import com.microsoft.graph.authentication.TokenCredentialAuthProvider; import com.microsoft.graph.models.DriveItemCreateUploadSessionParameterSet; import com.microsoft.graph.models.DriveItemUploadableProperties; import com.microsoft.graph.models.UploadSession; import com.microsoft.graph.requests.GraphServiceClient; import com.microsoft.graph.tasks.IProgressCallback; import com.microsoft.graph.tasks.LargeFileUploadTask;

till 5.80.0 the above imports is working fine.

Working dependency--> Old dependency till the imports are working groupId-->com.microsoft.graph artifactId-->microsoft-graph version-->5.80.0

Not working dependency--> Latest dependency after which imports are not working groupId-->com.microsoft.graph artifactId-->microsoft-graph version-->6.1.0

Can anyone help me if there is any changes in the structure of imports and if yes then what would be the structure of the above imports

Synneks commented 8 months ago

I am having the same issue coming from 5.77.0 -> 6.x.x. None of the imports work anymore.

Ndiritu commented 8 months ago

Some of the import namespaces have changed across the version. Based on your example...

import com.microsoft.graph.serviceclient.GraphServiceClient;
import com.microsoft.graph.core.models.IProgressCallback;
import com.microsoft.graph.core.tasks.LargeFileUploadTask;

The com.microsoft.graph.models.* namespaces should still work. Please let me know if this isn't the case.

For authentication, the structure and types needed has changed. Please see the upgrade guide

lilylafDSG commented 5 months ago

@Ndiritu it looks like the upgrade guide brings you to a 404 page. Can guidelines for upgrading be found in a different place?

Ndiritu commented 5 months ago

@lilylafDSG My apologies, we changed our default branch recently. Please check this link