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

Attach README.md and CHANGELOG.md as artifacts #13259

Merged
merged 6 commits into from
Jul 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions common/perf-test-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release History

## 1.0.0-beta.1 (Unreleased)
1 change: 1 addition & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ known_content_issues:
- ['sdk/formrecognizer/azure-ai-formrecognizer/swagger/README.md', '#3113']
- ['sdk/keyvault/README.md', '#3113']
- ['sdk/loganalytics/microsoft-azure-loganalytics/README.md', '#3113']
- ['sdk/parents/azure-client-sdk-parent/README.md', '#3113']
- ['sdk/search/azure-search-documents/swagger/readme.md', '#3113']
- ['sdk/search/azure-search-documents/src/test/README.md', '#3113']
- ['sdk/search/open-api/readme.md', '#3113']
Expand Down
3 changes: 3 additions & 0 deletions eng/jacoco-test-coverage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release History

## 1.0.0-SNAPSHOT (Unreleased)
2 changes: 2 additions & 0 deletions eng/jacoco-test-coverage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Microsoft Azure Client Library - Test coverage
Nothing exciting to see here, this just aggregates the modules for reporting purposes.
3 changes: 3 additions & 0 deletions sdk/e2e/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Release History

## 1.0.0-beta.1 (Unreleased)
1 change: 1 addition & 0 deletions sdk/parents/azure-client-sdk-parent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Microsoft Azure SDK for Java - Client Libraries
94 changes: 23 additions & 71 deletions sdk/parents/azure-client-sdk-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,29 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version> <!-- {x-version-update;org.codehaus.mojo:build-helper-maven-plugin;external_dependency} -->
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/README.md</file>
<type>md</type>
<classifier>readme</classifier>
</artifact>
<artifact>
<file>${basedir}/CHANGELOG.md</file>
<type>md</type>
<classifier>changelog</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<!-- Checks public surface area for breaking changes. -->
Expand Down Expand Up @@ -687,7 +710,6 @@
<quiet>true</quiet>
</configuration>
</plugin>

<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
Expand Down Expand Up @@ -1243,76 +1265,6 @@
</build>
</profile>

<profile>
<id>changelog</id>
<activation>
<file>
<exists>${basedir}/CHANGELOG.md</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} -->
<executions>
<execution>
<id>copy-changelog</id>
<phase>package</phase>
<configuration>
<target>
<echo>Copying ${project.basedir}/CHANGELOG.md to
${packageOutputDirectory}/${project.build.finalName}-changelog.md
</echo>
<copy file="${project.basedir}/CHANGELOG.md" tofile="${packageOutputDirectory}/${project.build.finalName}-changelog.md"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>readme</id>
<activation>
<file>
<exists>${basedir}/README.md</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} -->
<executions>
<execution>
<id>copy-readme</id>
<phase>package</phase>
<configuration>
<target>
<echo>Copying ${project.basedir}/README.md to
${packageOutputDirectory}/${project.build.finalName}-readme.md
</echo>
<copy file="${project.basedir}/README.md" tofile="${packageOutputDirectory}/${project.build.finalName}-readme.md"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<!-- separate profile for windows as the executable on windows is named npx.cmd and npx on other os families -->
<id>readme-codesnippet-windows</id>
Expand Down