Skip to content

Commit

Permalink
Prelim SDK BOM for this month. (#26587)
Browse files Browse the repository at this point in the history
BOM release for this month with additional changes to the generator to strip out external dependencies.
  • Loading branch information
pallavit authored Jan 26, 2022
1 parent 30f53ee commit 5c24c9a
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 164 deletions.
4 changes: 2 additions & 2 deletions eng/bomgenerator/generateAzureSDKBOM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ if(! (Test-Path $defaultPomFilePath)) {
Copy-Item $bomPomFilePath -Destination $inputDir
}

$mvnResults = mvn install
$mvnResults = "mvn exec:java -Dexec.args=`"-inputDir=$inputDir -outputDir=$outputDir -mode=generate`""
echo "Run the following to generate the Pom file and dependency closure report. Both files will be generated in the outputDir."
echo "mvn exec:java -Dexec.args=`"-inputDir=$inputDir -outputDir=$outputDir -mode=generate`""
Empty file added eng/bomgenerator/report.log
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ private void writeBom(Collection<BomDependency> bomDependencies) {
}).collect(Collectors.toList());
dependencies.addAll(externalBomDependencies);
dependencies.sort(new DependencyComparator());

// Remove external dependencies from the BOM.
dependencies = dependencies.stream().filter(dependency -> BASE_AZURE_GROUPID.equals(dependency.getGroupId())).collect(Collectors.toList());
management.setDependencies(dependencies);
writeModel(this.pomFileName, this.outputFileName, model);
}
Expand Down
14 changes: 14 additions & 0 deletions sdk/boms/azure-sdk-bom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Release History

## 1.1.0 (2021-01-22)

### Dependency Updates

- Updated Azure SDK dependency versions to more recent releases.
- Removed non-Azure SDK dependencies from the Azure SDK BOM.
Azure SDK BOM used to include external dependencies till now however this let to [dependency conflicts](https://github.com/Azure/azure-sdk-for-java/issues/26217)
in situations where our libraries were used along side other frameworks. Given the above we are removing 3rd party dependencies from the BOM and letting the Azure SDK Client implementation libraries bring them in at runtime.
We continue to ensure all our client libraries have unified set of external dependencies to prevents conflicts when used together.

#### Breaking Changes
If you depend on Azure SDK BOM to get versions for external libraries you would now see compilation errors in your project. Please explicitly add the required versions of your external dependencies to your project POM files.
Depending on implicit version for transitive dependencies should be avoided as it is not a recommended practice.

## 1.0.6 (2021-11-22)

### Dependency Updates
Expand Down
Loading

0 comments on commit 5c24c9a

Please sign in to comment.