Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is up with the Azure dependency? #227

Closed
lukecapizano opened this issue Mar 30, 2017 · 3 comments
Closed

What is up with the Azure dependency? #227

lukecapizano opened this issue Mar 30, 2017 · 3 comments

Comments

@lukecapizano
Copy link

<dependency> <groupId>com.microsoft.azure</groupId> <artifactId>azure-keyvault</artifactId> <version>0.9.3</version> </dependency>

My deployment ends up with dozens of extra .jars (almost 10MB worth) because of this. This manual download doesn't contain these dependencies... why is this in the .pom?

@ajlam
Copy link
Member

ajlam commented Mar 30, 2017

@lukecapizano, the Azure Key Vault dependencies were removed and made optional in our 6.1.4 preview release with PR #146. The manual download you see on the MS Download Center is for an older version of the JDBC driver (version 6.0).

@lukecapizano
Copy link
Author

@ajlam Oh, thanks for the explanation. Since the Azure Key Vault dependencies are optional, I'm assuming I can exclude the azure dependencies and still use all of the standard JDBC features available against a local SQL Server?

Gradle example:

dependencies {
    testCompile "junit:junit:4.12"
    compile("com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8") {
        exclude group: "com.microsoft.azure"
    }
}

@ajlam
Copy link
Member

ajlam commented Mar 30, 2017

@lukecapizano "com.microsoft.azure" covers the Azure Key Vault and Azure Active Directory for Java dependencies. These dependencies are used in the following scenarios:

  • Always Encrypted - encryption key gets stored in Azure Key Vault
  • Azure AD authentication - authenticating to Azure SQL Database with Azure AD auth methods

If you're connecting to your local SQL Server, standard JDBC features should be unaffected when excluding that group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants