Skip to content

Commit 8b8c8c6

Browse files
committed
Fix typos in method names
1 parent 59a3b62 commit 8b8c8c6

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333

3434
- name: Build, run tests and upload dev snapshot to Maven Central with Gradle
35-
run: ./gradlew devSnapshot printDevSnapshotReleaseNode
35+
run: ./gradlew devSnapshot printDevSnapshotReleaseNote
3636
env:
3737
STORE_ID: ${{ secrets.STORE_ID }}
3838
API_TOKEN: ${{ secrets.API_TOKEN }}

.github/workflows/push-to-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Build, upload release version to Maven Central and create git release tag with Gradle
37-
run: ./gradlew detekt final closeAndReleaseRepository printFinalReleaseNode
37+
run: ./gradlew detekt final closeAndReleaseRepository printFinalReleaseNote
3838
env:
3939
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
4040
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}

build.gradle.kts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ tasks.withType<PublishToMavenRepository> {
9595
}
9696
}
9797

98-
tasks.register("printFinalReleaseNode") {
98+
tasks.register(Tasks.PRINT_FINAL_RELEASE_NOTE_TASK_NAME) {
9999
doLast {
100-
printFinalReleaseNode(
100+
printFinalReleaseNote(
101101
groupId = PublicationSettings.GROUP_ID,
102102
artifactId = PublicationSettings.ARTIFACT_ID,
103103
sanitizedVersion = project.sanitizeVersion()
104104
)
105105
}
106106
}
107107

108-
tasks.register("printDevSnapshotReleaseNode") {
108+
tasks.register(Tasks.PRINT_DEV_SNAPSHOT_RELEASE_NOTE_TASK_NAME) {
109109
doLast {
110-
printDevSnapshotReleaseNode(
110+
printDevSnapshotReleaseNote(
111111
groupId = PublicationSettings.GROUP_ID,
112112
artifactId = PublicationSettings.ARTIFACT_ID,
113113
sanitizedVersion = project.sanitizeVersion()
@@ -227,7 +227,7 @@ fun Project.sanitizeVersion(): String {
227227

228228
fun Project.isSnapshotVersion() = version.toString().contains("-dev.")
229229

230-
fun printFinalReleaseNode(groupId: String, artifactId: String, sanitizedVersion: String) {
230+
fun printFinalReleaseNote(groupId: String, artifactId: String, sanitizedVersion: String) {
231231
println()
232232
println("========================================================")
233233
println()
@@ -249,7 +249,7 @@ fun printFinalReleaseNode(groupId: String, artifactId: String, sanitizedVersion:
249249
println()
250250
}
251251

252-
fun printDevSnapshotReleaseNode(groupId: String, artifactId: String, sanitizedVersion: String) {
252+
fun printDevSnapshotReleaseNote(groupId: String, artifactId: String, sanitizedVersion: String) {
253253
println()
254254
println("========================================================")
255255
println()
@@ -330,3 +330,8 @@ object Consts {
330330
const val SLOW_TESTS_LOGGING_THRESHOLD_MS = 30_000L
331331
const val MAX_TEST_RETRIES_COUNT = 3
332332
}
333+
334+
object Tasks {
335+
const val PRINT_FINAL_RELEASE_NOTE_TASK_NAME = "printFinalReleaseNote"
336+
const val PRINT_DEV_SNAPSHOT_RELEASE_NOTE_TASK_NAME = "printDevSnapshotReleaseNote"
337+
}

0 commit comments

Comments
 (0)