Skip to content

Commit

Permalink
Bump logging-parent version to 10.0.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
vy committed Sep 8, 2023
1 parent 8e763dd commit 71b929d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 478 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@ jobs:
if: github.repository == 'apache/logging-log4j-tools' && startsWith(github.ref, 'refs/heads/release/')
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yml@main
secrets: inherit
# Write permissions to allow the Maven `revision` property update, changelog release, etc.
permissions:
contents: write
with:
project-name: log4j-tools
distribution-attachment-count: 2
37 changes: 21 additions & 16 deletions RELEASING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,29 @@ In the code examples below, assuming the version to be released is `7.8.0`.
== Stage the release
. Checkout the release branch: `git checkout -B release/7.8.0 origin/main`
. Perform and commit following changes:
.. Set the `revision` property to `7.8.0` in xref:pom.xml[`pom.xml`]
.. For release notes
... Run `./mvnw -N -P changelog-release` and verify `src/changelog` content (e.g., `.release-notes.md.ftl`)
... Run `./mvnw -N -P changelog-export` and verify `target/release-notes` content
. Make sure that `./mvnw clean verify` succeeds – if not, implement necessary fixes
. Commit and push the `release/7.8.0` branch
. Make sure the associated https://github.com/apache/{repository-name}/actions[GitHub Actions workflow] succeeds:
. Create and push the release branch:
+
[source,bash]
----
git fetch -p
git checkout -B release/7.8.0 origin/main
git push origin release/7.8.0
----
. Verify that the associated https://github.com/apache/{repository-name}/actions[GitHub Actions workflow] succeeds:
.. `revision` property in `pom.xml` is updated
.. Changelog is released (i.e., `src/changelog/7.8.0` folder is populated)
.. *Signed artifacts* are uploaded to the _Staging Repositories_ in https://repository.apache.org/[repository.apache.org]
.. *Signed distribution and its checksum* (e.g., `apache-{project-name}-7.8.0.{zip,.zip.asc,.zip.sha512}`) are uploaded to https://dist.apache.org/repos/dist/dev/logging/log4j[dist.apache.org/repos/dist/**dev**/logging/log4j] Subversion repository (along with auxiliary files; email texts, etc.)
.. *Signed distribution and its checksum* (e.g., `apache-{project-name}-7.8.0-{bin,src}.{zip,.zip.asc,.zip.sha512}`) are uploaded to https://dist.apache.org/repos/dist/dev/logging/log4j[dist.apache.org/repos/dist/**dev**/logging/log4j] Subversion repository (along with auxiliary files; email texts, etc.)
+
If not, commit necessary fixes, push, and repeat.
+
[TIP]
====
GitHub Actions workflow is idempotent.
You can iterate on the `release/7.8.0` branch to perfect it.
====
. _Close_ the repository in https://repository.apache.org/[repository.apache.org]
== Vote the release
Expand All @@ -65,7 +74,8 @@ If not, commit necessary fixes, push, and repeat.
+
[WARNING]
====
Double-check the cited https://repository.apache.org[repository.apache.org] URL in the generated email, it might have changed!
**Fix the cited https://repository.apache.org[repository.apache.org] URL** in the generated email!
It changes after every Nexus deployment.
====
+
[WARNING]
Expand Down Expand Up @@ -128,11 +138,6 @@ Once the artifacts are visible in https://central.sonatype.dev/[central.sonatype
+
[WARNING]
====
Double-check the cited https://repository.apache.org[repository.apache.org] URL in the generated email, it might have changed!
====
+
[WARNING]
====
Make sure your email is sent in plain text, that is, https://infra.apache.org/contrib-email-tips#nohtml[no HTML]!
If you are using GMail, simply enable the _"Plain text mode"_ while composing your message.
====
28 changes: 0 additions & 28 deletions log4j-tools-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,32 +116,4 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>

<!-- Resolves `revision` property prior to deployment.
Skipping this step would result in artifacts not consumable by Maven.
https://maven.apache.org/maven-ci-friendly.html#install-deploy -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten-revision</id>
<goals>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>

</plugins>
</build>

</project>
Loading

0 comments on commit 71b929d

Please sign in to comment.