Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
9dfd68f
Fixed typo in NetworkUsageUnits.java (#10770)
nraikm May 6, 2020
c123e88
Mgmt generation: feature 2015 12 (#10772)
ChenTanyi May 6, 2020
8e9e3fa
Sync eng/common directory with azure-sdk-tools repository (#10739)
azure-sdk May 6, 2020
2c53711
Increment package version after release of com.azure azure-search-doc…
azure-sdk May 6, 2020
1bfd8f7
Identity credential updates (#10769)
g2vinay May 6, 2020
aa39e86
Add missing logging links in README files (#10834)
JimSuplizio May 6, 2020
1956e6b
Rename apiKey() to credential() in FormRecognizer and TextAnalytics C…
samvaity May 6, 2020
a2e36dd
Correct Azure Key Vault Certificates .md files content inconsistency …
FredGao-new May 6, 2020
d68e464
fix ci.data.yml (#10838)
JimSuplizio May 6, 2020
5343a15
Rev Identity dependency versions May 2020 (#10843)
g2vinay May 6, 2020
a937ee1
move smoke-tests.yml to enable notifications (#10794)
danieljurek May 6, 2020
f8ff23b
Prepare Azure Storage for May 2020 release (#10841)
alzimmermsft May 6, 2020
3ff2f93
Fix the pom file version scanner
JimSuplizio May 6, 2020
c60b7cc
Disable tests that fail on Ubuntu 18 (#10853)
conniey May 7, 2020
c09fa51
Update amqp version to prepare for release (#10851)
srnagar May 7, 2020
37420c3
cosmosdb analyticalStorage -> analyticalStore (#10728)
moderakh May 7, 2020
cab9bae
Increment version for storage releases (#10852)
azure-sdk May 7, 2020
1e6ba58
consume latest core mgmt changes (#10824)
xseeseesee May 7, 2020
2fe6e66
Update README and samples (#10837)
conniey May 7, 2020
b5c17c6
Sync eng/common directory with azure-sdk-tools repository (#10854)
azure-sdk May 7, 2020
1485216
Identity Changelog + README update May 2020 (#10850)
g2vinay May 7, 2020
3742ebf
Added content response on write enabled feature to Gateway and Direct…
kushagraThapar May 7, 2020
e5a6380
Increment package version after release of com.azure azure-ai-formrec…
azure-sdk May 7, 2020
91c6331
Fix link size error after reconnection (#10825)
srnagar May 7, 2020
d9b9ab5
Update changelog (#10901)
conniey May 7, 2020
b0ed22d
Increment package version after release of com.azure azure-core-amqp …
azure-sdk May 7, 2020
6ea230e
SyncClient: Bug fix - Multiple Receive on same client (#10734)
hemanttanwar May 7, 2020
9ae1c74
Mgmt generate: subscription 2019 10 pre (#10937)
ChenTanyi May 8, 2020
9f72595
mgmt samples spotbugs errors clean (#10889)
xseeseesee May 8, 2020
e963343
Mgmt generate: network 2020 04 (#10797)
ChenTanyi May 8, 2020
fcdaff1
Update EH versions for May release (#10914)
srnagar May 8, 2020
495d1c6
Update building and testing section to refer to wiki (#10911)
srnagar May 8, 2020
8297bf5
Set default test order to alphabetical (#10925)
mikeharder May 8, 2020
50b0531
Update org.springframework:spring-web for CVE issue (#10971)
JimSuplizio May 8, 2020
3777e2d
Update dep scanner (#10961)
JimSuplizio May 8, 2020
f620acc
README: Changing identity version to latest and adding some more expl…
hemanttanwar May 8, 2020
b801aed
Increment version for eventhubs releases (#10967)
azure-sdk May 8, 2020
150680c
Adding support for autoscale throughput (#10650)
mbhaskar May 8, 2020
7e1c1e1
update (#10978)
g2vinay May 8, 2020
3d3e6f0
Update Storage ci.yml Additional Modules (#10982)
alzimmermsft May 9, 2020
62005e7
[TA] Changes based on V3.0 swagger, etc (#10593)
mssfang May 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 5 additions & 46 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Merging Pull Requests (for project contributors with write access)

### Pre-requisites

- Install Java Development Kit 8
- Install Java Development Kit 8 or 11
- add `JAVA_HOME` to environment variables
- Install [Maven](http://maven.apache.org/download.cgi)
- add `MAVEN_HOME` to environment variables
Expand All @@ -54,52 +54,11 @@ Merging Pull Requests (for project contributors with write access)
`REG ADD HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1`<br>*(might need to type `yes` to override key if it already exists)*<br><br>
2.- Set up `git` by running:<br> `git config --system core.longpaths true`

### Building and Testing
### Building and Unit Testing

>**Note**: Build and test instructions have recently changed. The ```pom.client.xml``` file is no
> longer in the root of the repository and should be not be used as an aggregator moving forward.

This repository uses Maven to build the various modules that make up the Azure SDK for Java. You can build the entire set of modules by running the following command from the root of the repository:

```
mvn -Dgpg.skip clean install
```

This will build, test and install all of the modules into your local Maven cache. Optionally, you
can also skip unit test execution by issuing the following command. This can be useful when you
just want to try out a quick change without having to worry about unit tests.

```
mvn -Dgpg.skip -DskipTests clean install
```

If you only want to work on one module, you may opt to build just that module and its dependencies (e.g. com.azure:azure-messaging-eventhubs):

```
mvn -Dgpg.skip -DskipTests -pl com.azure:azure-messaging-eventhubs -am
```

The ```-pl``` switch takes a comma seperated list of fully qualified module names and the ```-am```
switch tells Maven to _also make_ all of the dependencies within the repository that it depends on. If
you are making changes across two modules you can tell Maven to build them both like this:

```
mvn -Dgpg.skip -DskipTests -pl com.azure:azure-messaging-eventhubs,com.azure:azure-core-amqp -am
```

Some parts of the SDK have multiple modules for a particular service, if you want to avoid typing
in all those module names for the ```-pl``` switch you can just target the appropriate POM file
(e.g. sdk/eventhubs/pom.xml) and execute the following command.

```
mvn -f sdk/eventhubs/pom.xml -Dgpg.skip clean install
```

Note that any dependencies for those modules will need to be in the Maven cache so will want to run
the first command listed above once to get the cache primed with all the dependencies.

>**Note**: Refer to [wiki](https://github.com/Azure/azure-sdk-for-java/wiki/Building) for learning about how to build using Java 11
>and [this wiki](https://github.com/Azure/azure-sdk-for-java/wiki/Unit-Testing) for guidelines on unit testing
Refer to the [build wiki](https://github.com/Azure/azure-sdk-for-java/wiki/Building) for learning how to build Java SDKs
and the [unit testing wiki](https://github.com/Azure/azure-sdk-for-java/wiki/Unit-Testing) for guidelines on unit
testing.

### Live testing

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
- template: ./templates/variables/globals.yml
- template: /eng/pipelines/templates/variables/globals.yml
- name: PomFile
value: common/smoke-tests/pom.xml

Expand Down
7 changes: 6 additions & 1 deletion eng/common/TestResources/Remove-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ if (![string]::IsNullOrWhiteSpace($ServiceDirectory)) {
$preRemovalScript = Join-Path -Path $root -ChildPath 'remove-test-resources-pre.ps1'
if (Test-Path $preRemovalScript) {
Log "Invoking pre resource removal script '$preRemovalScript'"
&$preRemovalScript -ResourceGroupName $ResourceGroupName @PSBoundParameters

if (!$PSCmdlet.ParameterSetName.StartsWith('ResourceGroup')) {
$PSBoundParameters.Add('ResourceGroupName', $ResourceGroupName);
}

&$preRemovalScript @PSBoundParameters
}
}

Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Submit-PullRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ param(
$PRBody = $PRTitle
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

$query = "state=open&head=${PROwner}:${PRBranch}&base=${BaseBranch}"

Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/copy-docs-to-blobstorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ param (
$UploadLatest=1
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

$Language = $Language.ToLower()

Expand Down
8 changes: 5 additions & 3 deletions eng/common/scripts/copy-readmes-to-docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ param (
[String]$TargetServices
)

$PACKAGE_README_REGEX = ".*[\/\\]sdk[\\\/][^\/\\]+[\\\/][^\/\\]+[\/\\]README\.md"
Write-Host "> $PSCommandPath $args"

$PACKAGE_README_REGEX = ".*[\/\\]sdk[\\\/][^\/\\]+[\\\/][^\/\\]+[\/\\]README\.md"

Write-Host "repo is $CodeRepo"

Expand Down Expand Up @@ -52,10 +54,10 @@ else {

foreach($service in $selectedServices){
$readmePath = Join-Path -Path $CodeRepo -ChildPath "sdk/$service"
Write-Host "Examining: $readmePath"
Write-Host "Examining: $readmePath"

$libraries = $metadataResponse | Where-Object { $_.RepoPath -eq $service }

foreach($library in $libraries){

$package = $library.Package
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/create-tags-and-git-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ param (
[switch]$forceCreate = $false
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

$VERSION_REGEX = "(?<major>\d+)(\.(?<minor>\d+))?(\.(?<patch>\d+))?((?<pre>[^0-9][^\s]+))?"
$SDIST_PACKAGE_REGEX = "^(?<package>.*)\-(?<versionstring>$VERSION_REGEX$)"
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/git-branch-push.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ param(
[string] $PushArgs = ""
)

Write-Host $MyInvocation.Line
Write-Host "> $PSCommandPath $args"

# This is necessay because of the janky git command output writing to stderr.
# Without explicitly setting the ErrorActionPreference to continue the script
Expand Down
10 changes: 5 additions & 5 deletions eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-formrecognizer</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure:azure-ai-formrecognizer;current} -->
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure:azure-ai-formrecognizer;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down Expand Up @@ -99,7 +99,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.1.0-beta.4</version> <!-- {x-version-update;com.azure:azure-identity;current} -->
<version>1.1.0-beta.5</version> <!-- {x-version-update;com.azure:azure-identity;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand All @@ -119,12 +119,12 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs</artifactId>
<version>5.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;current} -->
<version>5.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId>
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;current} -->
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down Expand Up @@ -175,7 +175,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-search-documents</artifactId>
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure:azure-search-documents;current} -->
<version>1.0.0-beta.4</version> <!-- {x-version-update;com.azure:azure-search-documents;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
8 changes: 8 additions & 0 deletions eng/mgmt/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
"source": "specification/datamigration/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"datashare/resource-manager": {
"source": "specification/datashare/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"devtestlabs/resource-manager" : {
"source": "specification/devtestlabs/resource-manager/readme.md",
"args": "--multiapi --fluent"
Expand Down Expand Up @@ -323,6 +327,10 @@
"\"moduleName\"": "\"StreamAnalytics\""
}
},
"subscription/resource-manager": {
"source": "specification/subscription/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"support/resource-manager": {
"source": "specification/support/resource-manager/readme.md",
"args": "--multiapi --fluent"
Expand Down
2 changes: 1 addition & 1 deletion eng/versioning/external_dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ org.springframework.security:spring-security-web;5.2.0.RELEASE
org.springframework.security:spring-security-oauth2-client;5.2.0.RELEASE
org.springframework.security:spring-security-oauth2-core;5.2.0.RELEASE
org.springframework.security:spring-security-oauth2-jose;5.2.0.RELEASE
org.springframework:spring-web;5.2.0.RELEASE
org.springframework:spring-web;5.2.5.RELEASE
pl.pragmatists:JUnitParams;1.1.1

## Test dependency versions
Expand Down
7 changes: 3 additions & 4 deletions eng/versioning/pom_file_version_scanner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,13 @@ Get-ChildItem -Path $Path -Filter pom*.xml -Recurse -File | ForEach-Object {
Write-Error-With-Color "Error: <dependencyManagement> is not allowed. Every dependency must have its own version and version update tag"
}

$xmlNsManager = New-Object -TypeName "Xml.XmlNamespaceManager" -ArgumentList $xmlPomFile.NameTable
$xmlNsManager.AddNamespace("ns", $xmlPomFile.DocumentElement.NamespaceURI)

# Ensure that the project has a version tag with the exception of projects under the eng directory which
# aren't releasing libraries but still need to have their dependencies checked
if ($pomFile.Split([IO.Path]::DirectorySeparatorChar) -notcontains "eng")
{

$xmlNsManager = New-Object -TypeName "Xml.XmlNamespaceManager" -ArgumentList $xmlPomFile.NameTable
$xmlNsManager.AddNamespace("ns", $xmlPomFile.DocumentElement.NamespaceURI)

$versionNode = $xmlPomFile.SelectSingleNode("/ns:project/ns:version", $xmlNsManager)
if ($xmlPomFile.project.version -and $versionNode)
{
Expand Down
18 changes: 16 additions & 2 deletions eng/versioning/scan_for_unreleased_dependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ Get-ChildItem -Path $serviceDirectory -Filter pom*.xml -Recurse -File | ForEach-
Write-Error-With-Color "Error: Cannot release non-beta libraries with beta_ dependencies. dependency=$($versionUpdateTag)"
}
continue
} else {
# If this is an external dependency then continue
if ($versionUpdateTag -match "external_dependency}") {
continue
}
# If this isn't an external dependency then ensure that if the dependency
# version is beta, that we're releasing a beta, otherwise fail
if ($versionNode.InnerText -like '*-beta.*')
{
if (!$libraryIsBeta)
{
$script:FoundError = $true
Write-Error-With-Color "Error: Cannot release non-beta libraries with beta dependencies. dependency=$($versionUpdateTag), version=$($versionNode.InnerText.Trim())"
}
}
}
}
else
Expand All @@ -106,8 +121,7 @@ if (-Not $script:FoundPomFile) {
exit(1)
}
if ($script:FoundError) {
Write-Error-With-Color "Libaries with unreleased dependencies cannot be released."
exit(1)
}

Write-Host "$($inputGroupId):$($inputArtifactId) looks goood to release" -ForegroundColor Green
Write-Host "$($inputGroupId):$($inputArtifactId) looks good to release" -ForegroundColor Green
27 changes: 13 additions & 14 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
com.azure:azure-sdk-all;1.0.0;1.0.0
com.azure:azure-sdk-parent;1.6.0;1.6.0
com.azure:azure-client-sdk-parent;1.7.0;1.7.0
com.azure:azure-ai-formrecognizer;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-formrecognizer;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-ai-textanalytics;1.0.0-beta.4;1.0.0-beta.5
com.azure:azure-core;1.5.0;1.6.0-beta.1
com.azure:azure-core-amqp;1.1.0;1.2.0-beta.1
com.azure:azure-core-amqp;1.1.2;1.2.0-beta.1
com.azure:azure-core-http-jdk-httpclient;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-core-http-netty;1.5.1;1.6.0-beta.1
com.azure:azure-core-http-okhttp;1.2.2;1.3.0-beta.1
Expand All @@ -21,25 +21,25 @@ com.azure:azure-cosmos-examples;4.0.1-beta.1;4.0.1-beta.1
com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1
com.azure:azure-data-appconfiguration;1.1.1;1.2.0-beta.1
com.azure:azure-e2e;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-identity;1.0.5;1.1.0-beta.4
com.azure:azure-identity;1.0.6;1.1.0-beta.5
com.azure:azure-identity-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-messaging-eventhubs;5.0.3;5.1.0-beta.1
com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.0.3;1.1.0-beta.1
com.azure:azure-messaging-eventhubs;5.1.0;5.2.0-beta.1
com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.1.0;1.2.0-beta.1
com.azure:azure-messaging-servicebus;7.0.0-beta.1;7.0.0-beta.2
com.azure:azure-search-documents;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-search-documents;1.0.0-beta.3;1.0.0-beta.4
com.azure:azure-security-keyvault-certificates;4.1.0-beta.2;4.1.0-beta.3
com.azure:azure-security-keyvault-keys;4.2.0-beta.3;4.2.0-beta.4
com.azure:azure-security-keyvault-secrets;4.2.0-beta.2;4.2.0-beta.3
com.azure:azure-sdk-template;1.0.4-beta.12;1.0.4-beta.13
com.azure:azure-storage-blob;12.6.0;12.7.0-beta.1
com.azure:azure-storage-blob-batch;12.5.0;12.6.0-beta.1
com.azure:azure-storage-blob-cryptography;12.6.0;12.7.0-beta.1
com.azure:azure-storage-blob;12.6.1;12.7.0-beta.1
com.azure:azure-storage-blob-batch;12.5.1;12.6.0-beta.1
com.azure:azure-storage-blob-cryptography;12.6.1;12.7.0-beta.1
com.azure:azure-storage-blob-nio;12.0.0-beta.1;12.0.0-beta.1
com.azure:azure-storage-common;12.6.0;12.7.0-beta.1
com.azure:azure-storage-file-share;12.4.0;12.5.0-beta.1
com.azure:azure-storage-file-datalake;12.1.0;12.2.0-beta.1
com.azure:azure-storage-common;12.6.1;12.7.0-beta.1
com.azure:azure-storage-file-share;12.4.1;12.5.0-beta.1
com.azure:azure-storage-file-datalake;12.1.1;12.2.0-beta.1
com.azure:azure-storage-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-storage-queue;12.5.0;12.6.0-beta.1
com.azure:azure-storage-queue;12.5.1;12.6.0-beta.1
com.azure:perf-test-core;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-test-watcher;1.0.0-beta.1;1.0.0-beta.1

Expand All @@ -48,7 +48,6 @@ com.azure:azure-test-watcher;1.0.0-beta.1;1.0.0-beta.1
# Format;
# unreleased_<groupId>:<artifactId>;dependency-version
# note: The unreleased dependencies will not be manipulated with the automatic PR creation code.
unreleased_com.azure:azure-core-amqp;1.1.0

# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
# version and set the version to the released beta. Released beta dependencies are only valid
Expand Down
2 changes: 1 addition & 1 deletion sdk/appconfiguration/azure-data-appconfiguration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.0.5</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<version>1.0.6</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class ApiManagementConfig {
*
* @return the id value.
*/
public String getId() {
public String id() {
return this.id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class ArmIdWrapper {
*
* @return the id value.
*/
public String getId() {
public String id() {
return this.id;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public ContainerInfo withName(String name) {
*
* @return the id value.
*/
public String getId() {
public String id() {
return this.id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class HostingEnvironmentProfile {
*
* @return the id value.
*/
public String getId() {
public String id() {
return this.id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class PrivateLinkResource {
*
* @return the id value.
*/
public String getId() {
public String id() {
return this.id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public SnapshotRecoverySource withLocation(String location) {
*
* @return the id value.
*/
public String getId() {
public String id() {
return this.id;
}

Expand Down
Loading