Thank you for your interest in contributing to Azure SDK for Java.
-
For reporting bugs, requesting features or asking for support, please file an issue in the issues section of the project.
-
If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.
-
To make code changes, or contribute something new, please follow the GitHub Forks / Pull requests model: Fork the repo, make the change and propose it back by submitting a pull request.
-
Refer to the wiki to learn about how Azure SDK for java generates CheckStyle, SpotBugs, Jacoco, and JavaDoc reports.
-
There are two Maven projects in the repo. Refer to the wiki to learn about project structure for each.
- Install Java Development Kit 8
- add
JAVA_HOME
to environment variables
- add
- Install Maven
- add
MAVEN_HOME
to environment variables
- add
Note: If you are on
Windows
, enable paths longer than 260 characters by:
1.- Run this as Administrator on a command prompt:
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1
(might need to typeyes
to override key if it already exists)
2.- Set upgit
by running:
git config --system core.longpaths true
The easiest way to build is by running the following command from the root folder:
mvn -f pom.client.xml -Dgpg.skip -DskipTests clean install
-f pom.client.xml
: tells maven to target latest Azure SDK for Java project.-Dgpg.skip
: disables gpg signing.-DskipTests:
Building without running unit tests would speed operation up, however, make sure all tests pass before creating a new PR.clean:
will remove any previous generated output.install:
compiles project and installs it in the local Maven cache.
Note: Refer to wiki for learning about how to build using Java 11
mvn -f sdk/{projectForlderDir}/pom.xml -Dgpg.skip clean install
//example: mvn -f sdk/keyvault/azure-keyvault-keys/pom.xml clean install