Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Add preflight publish task (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurelol authored Mar 23, 2022
1 parent 7673085 commit cbc5375
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/groovy/wooga/gradle/release/ReleasePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class ReleasePlugin implements Plugin<Project> {
public static final String SETUP_TASK = "setup"

public static final String SNAPSHOT_TASK_NAME = "snapshot"
public static final String PREFLIGHT_TASK_NAME = "preflight"
public static final String RC_TASK_NAME = "rc"
public static final String FINAL_TASK_NAME = "final"

Expand Down Expand Up @@ -149,11 +150,12 @@ class ReleasePlugin implements Plugin<Project> {
// which was deprecated in favor of our own solution. These tasks have no action, they instead
// work by mapping the 'release.stage' property.
// For example, invoking the `final` task will have the `release.stage` property set to `final`
Task preflightTask = project.tasks.create(PREFLIGHT_TASK_NAME)
Task finalTask = project.tasks.create(FINAL_TASK_NAME)
Task rcTask = project.tasks.create(RC_TASK_NAME)
Task snapshotTask = project.tasks.create(SNAPSHOT_TASK_NAME)

[snapshotTask, rcTask, finalTask].each {
[snapshotTask, preflightTask, rcTask, finalTask].each {
it.dependsOn publishTask
}

Expand Down

0 comments on commit cbc5375

Please sign in to comment.