Skip to content

Commit

Permalink
Revert "Use providers.gradleProperty (Gradle 6.2)" to not run into gr…
Browse files Browse the repository at this point in the history
…adle-nexus#267

This reverts commit f658356
  • Loading branch information
TWiStErRob committed Sep 18, 2023
1 parent 3944c5e commit 8e96e5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class NexusPublishPlugin : Plugin<Project> {
stagingRepositoryId.convention(registryService.map { it.registry[repository.get().name].stagingRepositoryId })
}
extension.repositories.all {
username.convention(rootProject.providers.gradleProperty("${name}Username").forUseAtConfigurationTimeCompat())
password.convention(rootProject.providers.gradleProperty("${name}Password").forUseAtConfigurationTimeCompat())
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, registryService)
}
Expand Down

0 comments on commit 8e96e5e

Please sign in to comment.