File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11@file:Suppress(" UnstableApiUsage" )
22
33import java.net.URL
4- import org.gradle.api.Project
5-
6- project.ext.set(" mavenCentralUsername" , propertyOrEmpty(" Turtle_Sonatype_Nexus_Username" ))
7- project.ext.set(" mavenCentralPassword" , propertyOrEmpty(" Turtle_Sonatype_Nexus_Password" ))
8- project.ext.set(" signingInMemoryKey" , propertyOrEmpty(" Turtle_Signing_Key" ))
9- project.ext.set(" signingInMemoryKeyPassword" , propertyOrEmpty(" Turtle_Signing_Password" ))
104
115plugins {
126 kotlin(" jvm" )
@@ -44,6 +38,10 @@ tasks.dokkaHtml.configure {
4438 }
4539}
4640
41+ signing {
42+ useInMemoryPgpKeys(propertyOrEmpty(" Turtle_Signing_Key" ), propertyOrEmpty(" Turtle_Signing_Password" ))
43+ }
44+
4745fun Project.propertyOrEmpty (name : String ): String {
4846 val property = findProperty(name) as String?
4947 return property ? : environmentVariable(name)
You can’t perform that action at this time.
0 commit comments