From 8d9d10722b10482fe2aa384975566bf40b071958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Sat, 8 Jul 2023 15:55:25 +0100 Subject: [PATCH 1/6] Bump minimum version to Gradle 6.1 --- .github/workflows/java-versions.yml | 2 +- README.md | 2 +- build.gradle.kts | 6 +++--- .../github/gradlenexus/publishplugin/NexusPublishPlugin.kt | 4 ++-- stutter.lockfile | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/java-versions.yml b/.github/workflows/java-versions.yml index 98e4e0fc..b65f5fb2 100644 --- a/.github/workflows/java-versions.yml +++ b/.github/workflows/java-versions.yml @@ -29,7 +29,7 @@ jobs: - name: Reduce number of Gradle regressions builds run: | # Keep only the last Gradle version per Stutter matrix; for each line this transformation is done: - # java11=6.0.1,6.9.4,7.0.2,7.6.1,8.0.2,8.1.1,8.2-rc-1 + # java11=6.1.1,6.9.4,7.0.2,7.6.1,8.0.2,8.1.1,8.2-rc-1 # -> # java11=8.2-rc-1 # The trick is that \2 will greedily eat everything before the last comma. diff --git a/README.md b/README.md index c906e93b..b2953036 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This plugin is intended as a replacement of the [Gradle Nexus Staging Plugin](ht ### Applying the plugin -The plugin must be applied to the root project and requires Gradle 6.0 or later. It is important to +The plugin must be applied to the root project and requires Gradle 6.1 or later. It is important to set the group and the version to the root project, so the plugin can detect if it is a snapshot version or not in order to select the correct repository where artifacts will be published. diff --git a/build.gradle.kts b/build.gradle.kts index d2815a54..20e391bc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -109,7 +109,7 @@ stutter { languageVersion = JavaLanguageVersion.of(8) } gradleVersions { - compatibleRange("6.0") + compatibleRange("6.1") } } register("java11") { @@ -117,7 +117,7 @@ stutter { languageVersion = JavaLanguageVersion.of(11) } gradleVersions { - compatibleRange("6.0") + compatibleRange("6.1") } } register("java17") { @@ -164,7 +164,7 @@ sourceSets { } kotlin.target.compilations.configureEach { - // Supporting Gradle 6.0+ needs to use Kotlin 1.3. + // Supporting Gradle 6.1+ needs to use Kotlin 1.3. // See https://docs.gradle.org/current/userguide/compatibility.html // For future maintainer: Kotlin 1.9.0 dropped support for Kotlin 1.3, it'll only support 1.4+. // This means Gradle 7.0 will be the lowest supportable version for plugins. diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt index 313b4d26..90fcbe1e 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt @@ -54,8 +54,8 @@ class NexusPublishPlugin : Plugin { "Plugin must be applied to the root project but was applied to ${project.path}" } - require(GradleVersion.current() >= GradleVersion.version("6.0")) { - "The plugin requires Gradle version 6.0+" + require(GradleVersion.current() >= GradleVersion.version("6.1")) { + "The plugin requires Gradle version 6.1+" } val registry = createRegistry(project) diff --git a/stutter.lockfile b/stutter.lockfile index 6f46d4df..7c3e10d0 100644 --- a/stutter.lockfile +++ b/stutter.lockfile @@ -1,4 +1,4 @@ # DO NOT MODIFY: Generated by Stutter plugin. -java11=6.0.1,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 +java11=6.1.1,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 java17=7.3.3,7.6.2,8.0.2,8.2.1 -java8=6.0.1,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 +java8=6.1.1,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 From 671d43dbddde9ce6c88c8f92ac0c8c22f119ab1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Sat, 8 Jul 2023 16:11:12 +0100 Subject: [PATCH 2/6] Use build service all the way (Gradle 6.1) --- .../publishplugin/FindStagingRepository.kt | 7 +-- .../InitializeNexusStagingRepository.kt | 7 +-- .../publishplugin/NexusPublishPlugin.kt | 53 ++++++++++--------- 3 files changed, 37 insertions(+), 30 deletions(-) diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/FindStagingRepository.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/FindStagingRepository.kt index a9a1fdc1..eb4bf763 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/FindStagingRepository.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/FindStagingRepository.kt @@ -16,7 +16,7 @@ package io.github.gradlenexus.publishplugin -import io.github.gradlenexus.publishplugin.internal.InvalidatingStagingRepositoryDescriptorRegistry +import io.github.gradlenexus.publishplugin.internal.StagingRepositoryDescriptorRegistryBuildService import io.github.gradlenexus.publishplugin.internal.determineStagingProfileId import org.gradle.api.Incubating import org.gradle.api.provider.Property @@ -29,7 +29,8 @@ import org.gradle.api.tasks.TaskAction abstract class FindStagingRepository : AbstractNexusStagingRepositoryTask() { @get:Internal - abstract val registry: Property + // TODO use @ServiceReference instead of @Internal when minimum is Gradle 8.0. + abstract val registry: Property @get:Optional @get:Input @@ -58,6 +59,6 @@ abstract class FindStagingRepository : AbstractNexusStagingRepositoryTask() { val descriptor = client.findStagingRepository(stagingProfileId, Regex(descriptionRegex)) logger.lifecycle("Staging repository for {} at {}, stagingProfileId '{}', descriptionRegex '{}' is '{}'", repository.name, serverUrl, stagingProfileId, descriptionRegex, descriptor.stagingRepositoryId) stagingRepositoryId.set(descriptor.stagingRepositoryId) - registry.get()[repository.name] = descriptor + registry.get().registry[repository.name] = descriptor } } diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/InitializeNexusStagingRepository.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/InitializeNexusStagingRepository.kt index e7288281..9370e610 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/InitializeNexusStagingRepository.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/InitializeNexusStagingRepository.kt @@ -16,7 +16,7 @@ package io.github.gradlenexus.publishplugin -import io.github.gradlenexus.publishplugin.internal.InvalidatingStagingRepositoryDescriptorRegistry +import io.github.gradlenexus.publishplugin.internal.StagingRepositoryDescriptorRegistryBuildService import io.github.gradlenexus.publishplugin.internal.determineStagingProfileId import okhttp3.HttpUrl import org.gradle.api.provider.Property @@ -28,7 +28,8 @@ import org.gradle.api.tasks.TaskAction abstract class InitializeNexusStagingRepository : AbstractNexusStagingRepositoryTask() { @get:Internal - abstract val registry: Property + // TODO use @ServiceReference instead of @Internal when minimum is Gradle 8.0. + abstract val registry: Property @get:Optional @get:Input @@ -44,6 +45,6 @@ abstract class InitializeNexusStagingRepository : AbstractNexusStagingRepository val descriptor = client.createStagingRepository(stagingProfileId, repositoryDescription.get()) val consumerUrl = HttpUrl.get(serverUrl)!!.newBuilder().addEncodedPathSegments("repositories/${descriptor.stagingRepositoryId}/content/").build() logger.lifecycle("Created staging repository '{}' at {}", descriptor.stagingRepositoryId, consumerUrl) - registry.get()[repository.name] = descriptor + registry.get().registry[repository.name] = descriptor } } diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt index 90fcbe1e..7d179e83 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt @@ -17,7 +17,6 @@ package io.github.gradlenexus.publishplugin import io.github.gradlenexus.publishplugin.NexusRepository.PublicationType -import io.github.gradlenexus.publishplugin.internal.InvalidatingStagingRepositoryDescriptorRegistry import io.github.gradlenexus.publishplugin.internal.StagingRepositoryDescriptorRegistryBuildService import org.gradle.api.Action import org.gradle.api.Plugin @@ -78,19 +77,18 @@ class NexusPublishPlugin : Plugin { } } - private fun createRegistry(rootProject: Project): Provider { - if (GradleVersion.current() >= GradleVersion.version("6.1")) { - return rootProject.gradle.sharedServices.registerIfAbsent( - "stagingRepositoryUrlRegistry", - StagingRepositoryDescriptorRegistryBuildService::class, - Action { } - ).map { it.registry } - } - val registry = InvalidatingStagingRepositoryDescriptorRegistry() - return rootProject.provider { registry } - } + private fun createRegistry(rootProject: Project): Provider = + rootProject.gradle.sharedServices.registerIfAbsent( + "stagingRepositoryUrlRegistry", + StagingRepositoryDescriptorRegistryBuildService::class, + Action { } + ) - private fun configureNexusTasks(rootProject: Project, extension: NexusPublishExtension, registry: Provider) { + private fun configureNexusTasks( + rootProject: Project, + extension: NexusPublishExtension, + registryService: Provider + ) { rootProject.tasks.withType(AbstractNexusStagingRepositoryTask::class.java).configureEach { clientTimeout.convention(extension.clientTimeout) connectTimeout.convention(extension.connectTimeout) @@ -100,13 +98,14 @@ class NexusPublishPlugin : Plugin { } rootProject.tasks.withType(AbstractTransitionNexusStagingRepositoryTask::class.java).configureEach { transitionCheckOptions.convention(extension.transitionCheckOptions) - stagingRepositoryId.convention(registry.map { it[repository.get().name].stagingRepositoryId }) + usesService(registryService) + stagingRepositoryId.convention(registryService.map { it.registry[repository.get().name].stagingRepositoryId }) } extension.repositories.all { username.convention(rootProject.provider { rootProject.findProperty("${name}Username") as? String }) password.convention(rootProject.provider { rootProject.findProperty("${name}Password") as? String }) publicationType.convention(PublicationType.MAVEN) - configureRepositoryTasks(rootProject.tasks, extension, this, registry) + configureRepositoryTasks(rootProject.tasks, extension, this, registryService) } extension.repositories.whenObjectRemoved { rootProject.tasks.named("initialize${capitalizedName}StagingRepository").configure { @@ -136,7 +135,7 @@ class NexusPublishPlugin : Plugin { tasks: TaskContainer, extension: NexusPublishExtension, repo: NexusRepository, - registryProvider: Provider + registryService: Provider ) { @Suppress("UNUSED_VARIABLE") // Keep it consistent. val retrieveStagingProfileTask = tasks.register( @@ -154,7 +153,8 @@ class NexusPublishPlugin : Plugin { ) { group = PublishingPlugin.PUBLISH_TASK_GROUP description = "Initializes the staging repository in '${repo.name}' Nexus instance." - registry.set(registryProvider) + registry.set(registryService) + usesService(registryService) repository.convention(repo) packageGroup.convention(extension.packageGroup) } @@ -163,7 +163,8 @@ class NexusPublishPlugin : Plugin { ) { group = PublishingPlugin.PUBLISH_TASK_GROUP description = "Finds the staging repository for ${repo.name}" - registry.set(registryProvider) + registry.set(registryService) + usesService(registryService) repository.convention(repo) packageGroup.convention(extension.packageGroup) descriptionRegex.convention(extension.repositoryDescription.map { "\\b" + Regex.escape(it) + "(\\s|$)" }) @@ -203,7 +204,11 @@ class NexusPublishPlugin : Plugin { } } - private fun configurePublishingForAllProjects(rootProject: Project, extension: NexusPublishExtension, registry: Provider) { + private fun configurePublishingForAllProjects( + rootProject: Project, + extension: NexusPublishExtension, + registry: Provider + ) { rootProject.afterEvaluate { allprojects { val publishingProject = this @@ -242,7 +247,7 @@ class NexusPublishPlugin : Plugin { private fun addPublicationRepositories( project: Project, extension: NexusPublishExtension, - registry: Provider + registry: Provider ): Map = extension.repositories.associateWith { nexusRepo -> createArtifactRepository(nexusRepo.publicationType.get(), project, nexusRepo, extension, registry) } @@ -252,7 +257,7 @@ class NexusPublishPlugin : Plugin { project: Project, nexusRepo: NexusRepository, extension: NexusPublishExtension, - registry: Provider + registry: Provider ): ArtifactRepository = when (publicationType) { PublicationType.MAVEN -> project.theExtension().repositories.maven { configureArtifactRepo(nexusRepo, extension, registry, false) @@ -271,7 +276,7 @@ class NexusPublishPlugin : Plugin { private fun T.configureArtifactRepo( nexusRepo: NexusRepository, extension: NexusPublishExtension, - registry: Provider, + registry: Provider, provideFallback: Boolean ) where T : UrlArtifactRepository, T : ArtifactRepository, T : AuthenticationSupported { name = nexusRepo.name @@ -327,13 +332,13 @@ class NexusPublishPlugin : Plugin { private fun getRepoUrl( nexusRepo: NexusRepository, extension: NexusPublishExtension, - registry: Provider, + registry: Provider, provideFallback: Boolean, artifactRepo: ArtifactRepository ): Provider = extension.useStaging.flatMap { useStaging -> if (useStaging) { - registry.map { descriptorRegistry -> + registry.map { it.registry }.map { descriptorRegistry -> if (provideFallback) { descriptorRegistry.invalidateLater(nexusRepo.name, artifactRepo) descriptorRegistry.tryGet(nexusRepo.name)?.stagingRepositoryUrl ?: nexusRepo.nexusUrl.get() From 377ecbddd97ab0d4fa54992e6c7086a7cdcccee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Thu, 13 Jul 2023 09:37:14 +0100 Subject: [PATCH 3/6] Bump minimum version to Gradle 6.2 --- .github/workflows/java-versions.yml | 2 +- README.md | 2 +- build.gradle.kts | 6 +++--- .../github/gradlenexus/publishplugin/NexusPublishPlugin.kt | 4 ++-- stutter.lockfile | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/java-versions.yml b/.github/workflows/java-versions.yml index b65f5fb2..91467e4f 100644 --- a/.github/workflows/java-versions.yml +++ b/.github/workflows/java-versions.yml @@ -29,7 +29,7 @@ jobs: - name: Reduce number of Gradle regressions builds run: | # Keep only the last Gradle version per Stutter matrix; for each line this transformation is done: - # java11=6.1.1,6.9.4,7.0.2,7.6.1,8.0.2,8.1.1,8.2-rc-1 + # java11=6.2.2,6.9.4,7.0.2,7.6.1,8.0.2,8.1.1,8.2-rc-1 # -> # java11=8.2-rc-1 # The trick is that \2 will greedily eat everything before the last comma. diff --git a/README.md b/README.md index b2953036..1e6cdbe4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This plugin is intended as a replacement of the [Gradle Nexus Staging Plugin](ht ### Applying the plugin -The plugin must be applied to the root project and requires Gradle 6.1 or later. It is important to +The plugin must be applied to the root project and requires Gradle 6.2 or later. It is important to set the group and the version to the root project, so the plugin can detect if it is a snapshot version or not in order to select the correct repository where artifacts will be published. diff --git a/build.gradle.kts b/build.gradle.kts index 20e391bc..766f8603 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -109,7 +109,7 @@ stutter { languageVersion = JavaLanguageVersion.of(8) } gradleVersions { - compatibleRange("6.1") + compatibleRange("6.2") } } register("java11") { @@ -117,7 +117,7 @@ stutter { languageVersion = JavaLanguageVersion.of(11) } gradleVersions { - compatibleRange("6.1") + compatibleRange("6.2") } } register("java17") { @@ -164,7 +164,7 @@ sourceSets { } kotlin.target.compilations.configureEach { - // Supporting Gradle 6.1+ needs to use Kotlin 1.3. + // Supporting Gradle 6.2+ needs to use Kotlin 1.3. // See https://docs.gradle.org/current/userguide/compatibility.html // For future maintainer: Kotlin 1.9.0 dropped support for Kotlin 1.3, it'll only support 1.4+. // This means Gradle 7.0 will be the lowest supportable version for plugins. diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt index 7d179e83..399218cd 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt @@ -53,8 +53,8 @@ class NexusPublishPlugin : Plugin { "Plugin must be applied to the root project but was applied to ${project.path}" } - require(GradleVersion.current() >= GradleVersion.version("6.1")) { - "The plugin requires Gradle version 6.1+" + require(GradleVersion.current() >= GradleVersion.version("6.2")) { + "The plugin requires Gradle version 6.2+" } val registry = createRegistry(project) diff --git a/stutter.lockfile b/stutter.lockfile index 7c3e10d0..bff6f5cf 100644 --- a/stutter.lockfile +++ b/stutter.lockfile @@ -1,4 +1,4 @@ # DO NOT MODIFY: Generated by Stutter plugin. -java11=6.1.1,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 +java11=6.2.2,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 java17=7.3.3,7.6.2,8.0.2,8.2.1 -java8=6.1.1,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 +java8=6.2.2,6.9.4,7.0.2,7.6.2,8.0.2,8.2.1 From f658356bf32ce2662388ca72cfef0a09c141ccb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Sat, 8 Jul 2023 11:28:03 +0100 Subject: [PATCH 4/6] Use providers.gradleProperty (Gradle 6.2) --- .../io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt index 399218cd..d4024591 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt @@ -102,8 +102,8 @@ class NexusPublishPlugin : Plugin { stagingRepositoryId.convention(registryService.map { it.registry[repository.get().name].stagingRepositoryId }) } extension.repositories.all { - username.convention(rootProject.provider { rootProject.findProperty("${name}Username") as? String }) - password.convention(rootProject.provider { rootProject.findProperty("${name}Password") as? String }) + username.convention(rootProject.providers.gradleProperty("${name}Username")) + password.convention(rootProject.providers.gradleProperty("${name}Password")) publicationType.convention(PublicationType.MAVEN) configureRepositoryTasks(rootProject.tasks, extension, this, registryService) } From 8286ee4140c37541fb4059c78d48b154ffa6352b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Thu, 13 Jul 2023 10:39:20 +0100 Subject: [PATCH 5/6] forUseAtConfigurationTime compatibility --- .../publishplugin/NexusPublishPlugin.kt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt index d4024591..5f1c14b7 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt @@ -102,8 +102,8 @@ class NexusPublishPlugin : Plugin { stagingRepositoryId.convention(registryService.map { it.registry[repository.get().name].stagingRepositoryId }) } extension.repositories.all { - username.convention(rootProject.providers.gradleProperty("${name}Username")) - password.convention(rootProject.providers.gradleProperty("${name}Password")) + username.convention(rootProject.providers.gradleProperty("${name}Username").forUseAtConfigurationTimeCompat()) + password.convention(rootProject.providers.gradleProperty("${name}Password").forUseAtConfigurationTimeCompat()) publicationType.convention(PublicationType.MAVEN) configureRepositoryTasks(rootProject.tasks, extension, this, registryService) } @@ -380,3 +380,17 @@ private inline fun Project.theExtension(): T = this.extensions.findByType(it) ?: error("The plugin cannot be applied without the publishing plugin") } + +private fun Provider.forUseAtConfigurationTimeCompat(): Provider = + if (GradleVersion.current() < GradleVersion.version("6.5")) { + // Gradle < 6.5 doesn't have this function. + this + } else if (GradleVersion.current() < GradleVersion.version("7.4")) { + // Gradle 6.5 - 7.3 requires this function to be called. + @Suppress("DEPRECATION") + this.forUseAtConfigurationTime() + } else { + // Gradle >= 7.4 deprecated this function in favor of not calling it (became no-op, and will eventually nag). + // https://docs.gradle.org/current/userguide/upgrading_version_7.html#for_use_at_configuration_time_deprecation + this + } From 3944c5ebb06c516e2adb95bbe16e6cda73c97989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= <148013+szpak@users.noreply.github.com> Date: Fri, 21 Jul 2023 20:01:44 +0200 Subject: [PATCH 6/6] Use full plugin name in error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RĂ³bert Papp --- .../io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt index 5f1c14b7..ef962daf 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishPlugin.kt @@ -54,7 +54,7 @@ class NexusPublishPlugin : Plugin { } require(GradleVersion.current() >= GradleVersion.version("6.2")) { - "The plugin requires Gradle version 6.2+" + "io.github.gradle-nexus.publish-plugin requires Gradle version 6.2+" } val registry = createRegistry(project)