Gradle created a preVerifyRelease task

This commit is contained in:
Andrea Boriero 2022-05-16 12:11:48 +02:00 committed by Andrea Boriero
parent 61586d9559
commit 7b2e93fa17
4 changed files with 20 additions and 1 deletions

View File

@ -232,6 +232,12 @@ task ciBuild {
}
tasks.release.dependsOn tasks.test, tasks.publishToSonatype
tasks.preVerifyRelease.dependsOn build
tasks.preVerifyRelease.dependsOn generateMetadataFileForPublishedArtifactsPublication
tasks.preVerifyRelease.dependsOn generatePomFileForPublishedArtifactsPublication
tasks.preVerifyRelease.dependsOn generatePomFileForRelocationPomPublication
tasks.publishToSonatype.mustRunAfter test

View File

@ -5,3 +5,7 @@ task release {
mustRunAfter ':release:releaseChecks'
enabled !project.ormVersion.isSnapshot
}
task preVerifyRelease {
dependsOn ':release:preVerifyRelease'
}

View File

@ -15,7 +15,7 @@ First, a list of resources you will need access to in order to perform a release
== Steps
1. Perform `./gradlew clean build` locally (after pulling all upstream changes). The Jenkins job does only the release steps, and we need to make sure tests and checkstyle especially are ok
1. Perform `./gradlew preVerifyRelease` locally (after pulling all upstream changes). The Jenkins job does only the release steps, and we need to make sure tests and checkstyle especially are ok
2. Mark the version as released in Jira
3. Close all issues associated with the version as closed. Be sure to remove the version from any issues that are not resolved (e.g. rejected) - the Jira "release notes" mechanism includes all issues with that version as the fix-for regardless of the resolution
4. Start the https://ci.hibernate.org/view/ORM/job/hibernate-orm-release/[Jenkins job]. It is a parameterized build - Jenkins will prompt user for needed information:

View File

@ -349,6 +349,15 @@ task releaseChecks {
description 'Checks and preparation for release'
}
task preVerifyRelease{
group 'Release'
description 'Pre-verifies a release job execution (Run locally before a CI release)'
dependsOn clean
dependsOn assembleDocumentation
}
task changeLogFile {
group 'Release'
description 'Updates the changelog.txt file based on the change-log report from Jira'