You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,39 @@ The plugin assumes Git root is in the same location as Gradle root. If this isn'
128
128
129
129
./gradlew -Pgit.root=<git root path> final
130
130
131
+
# Lifecycle Hooks
132
+
133
+
### For `devSnapshot`
134
+
135
+
*`devSnapshotSetup` - any kind of setup is good to live around here, e.g. setting status, various checks
136
+
*`release` - probably have `release` dependOn any `assemble` and `check` tasks, dependsOn `devSnapshotSetup`
137
+
*`postRelease` - any steps you want to happen after the repo tag, in our case this is where publishing happens since if the publish partially fails we don't want to fix the tags, dependsOn `release`
138
+
*`devSnapshot` - command line task to kick off devSnapshot workflow, dependsOn `postRelease`
139
+
140
+
### For `snapshot`
141
+
142
+
*`snapshotSetup` - any kind of setup is good to live around here, e.g. setting status, various checks
143
+
*`release` - probably have `release` dependOn any `assemble` and `check` tasks, dependsOn `snapshotSetup`
144
+
*`postRelease` - any steps you want to happen after the repo tag, in our case this is where publishing happens since if the publish partially fails we don't want to fix the tags, dependsOn `release`
145
+
*`snapshot` - command line task to kick off snapshot workflow, dependsOn `postRelease`
146
+
147
+
### For `candidate`
148
+
149
+
*`candidateSetup` - any kind of setup is good to live around here, e.g. setting status, various checks
150
+
*`release` - this is where the tag is pushed to the repo, so probably have `release` dependOn any `assemble` and `check` tasks, dependsOn `candidateSetup`
151
+
*`postRelease` - any steps you want to happen after the repo tag, in our case this is where publishing happens since if the publish partially fails we don't want to fix the tags, dependsOn `release`
152
+
*`candidate` - command line task to kick off devSnapshot workflow, dependsOn `postRelease`
153
+
154
+
### For `final`
155
+
156
+
*`finalSetup` - any kind of setup is good to live around here, e.g. setting status, various checks
157
+
*`release` - this is where the tag is pushed to the repo, so probably have `release` dependOn any `assemble` and `check` tasks, dependsOn `finalSetup`
158
+
*`postRelease` - any steps you want to happen after the repo tag, in our case this is where publishing happens since if the publish partially fails we don't want to fix the tags, dependsOn `release`
159
+
*`final` - command line task to kick off devSnapshot workflow, dependsOn `postRelease`
0 commit comments