Skip to content

Commit 7b2e93f

Browse files
committed
Gradle created a preVerifyRelease task
1 parent 61586d9 commit 7b2e93f

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

gradle/published-java-module.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ task ciBuild {
232232
}
233233

234234
tasks.release.dependsOn tasks.test, tasks.publishToSonatype
235+
236+
tasks.preVerifyRelease.dependsOn build
237+
tasks.preVerifyRelease.dependsOn generateMetadataFileForPublishedArtifactsPublication
238+
tasks.preVerifyRelease.dependsOn generatePomFileForPublishedArtifactsPublication
239+
tasks.preVerifyRelease.dependsOn generatePomFileForRelocationPomPublication
240+
235241
tasks.publishToSonatype.mustRunAfter test
236242

237243

gradle/releasable.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ task release {
55
mustRunAfter ':release:releaseChecks'
66
enabled !project.ormVersion.isSnapshot
77
}
8+
9+
task preVerifyRelease {
10+
dependsOn ':release:preVerifyRelease'
11+
}

release/jenkins-release-process.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ First, a list of resources you will need access to in order to perform a release
1515

1616
== Steps
1717

18-
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
18+
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
1919
2. Mark the version as released in Jira
2020
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
2121
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:

release/release.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,15 @@ task releaseChecks {
349349
description 'Checks and preparation for release'
350350
}
351351

352+
task preVerifyRelease{
353+
group 'Release'
354+
description 'Pre-verifies a release job execution (Run locally before a CI release)'
355+
356+
dependsOn clean
357+
dependsOn assembleDocumentation
358+
}
359+
360+
352361
task changeLogFile {
353362
group 'Release'
354363
description 'Updates the changelog.txt file based on the change-log report from Jira'

0 commit comments

Comments
 (0)