From a70ef02849455019a9b1ee529914634ee9de9124 Mon Sep 17 00:00:00 2001 From: Martin Bonnin Date: Wed, 31 Jul 2024 15:01:50 +0200 Subject: [PATCH] better name for taasks --- ...epositoryTask.kt => CloseAndMaybeReleaseRepositoryTask.kt} | 2 +- .../src/main/kotlin/com/gradleup/librarian/gradle/root.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/{ReleaseRepositoryTask.kt => CloseAndMaybeReleaseRepositoryTask.kt} (95%) diff --git a/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/ReleaseRepositoryTask.kt b/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/CloseAndMaybeReleaseRepositoryTask.kt similarity index 95% rename from librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/ReleaseRepositoryTask.kt rename to librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/CloseAndMaybeReleaseRepositoryTask.kt index 3415cf4..090c61d 100644 --- a/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/ReleaseRepositoryTask.kt +++ b/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/internal/task/CloseAndMaybeReleaseRepositoryTask.kt @@ -10,7 +10,7 @@ import org.gradle.api.tasks.Input import org.gradle.api.tasks.TaskAction import kotlin.time.Duration.Companion.minutes -abstract class ReleaseRepositoryTask: DefaultTask() { +abstract class CloseAndMaybeReleaseRepositoryTask: DefaultTask() { @get:Input abstract val username: Property diff --git a/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/root.kt b/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/root.kt index 143e779..117f71d 100644 --- a/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/root.kt +++ b/librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle/root.kt @@ -11,7 +11,7 @@ import org.gradle.api.tasks.TaskProvider internal val librarianCreateStagingRepo = "librarianCreateStagingRepo" internal val librarianUploadFilesToStaging = "librarianUploadFilesToStaging" -internal val librarianReleaseRepository = "librarianReleaseRepository" +internal val librarianCloseAndMaybeReleaseRepository = "librarianCloseAndMaybeReleaseRepository" internal val librarianUploadFilesToSnapshots = "librarianUploadFilesToSnapshots" @@ -85,7 +85,7 @@ fun Project.librarianRoot() { it.files.from(allFiles) } - mavenCentralTaskProvider = tasks.register(librarianReleaseRepository, ReleaseRepositoryTask::class.java) { + mavenCentralTaskProvider = tasks.register(librarianCloseAndMaybeReleaseRepository, CloseAndMaybeReleaseRepositoryTask::class.java) { it.baseUrl.set(stagingBaseUrl(sonatype.backend, sonatype.baseUrl)) it.username.set(sonatype.username) it.password.set(sonatype.password)