Skip to content

Commit

Permalink
Use extra properties to set the publishing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
big-guy committed Oct 15, 2020
1 parent ca46f2a commit e8e7fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ setFromEnvOrGradleProperty("gradle.publish.secret", "GRADLE_PUBLISH_SECRET")
fun Project.setFromEnvOrGradleProperty(gradleProperty: String, environmentVariable: String) {
val envVar = providers.environmentVariable(environmentVariable).forUseAtConfigurationTime()
val gradleProp = providers.gradleProperty(gradleProperty).forUseAtConfigurationTime()
setProperty(gradleProperty, envVar.orElse(gradleProp).getOrNull())
ext[gradleProperty] = envVar.orElse(gradleProp).getOrNull()
}

pluginBundle {
Expand Down

0 comments on commit e8e7fb9

Please sign in to comment.