@@ -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
228228fun 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