Skip to content

Commit 55d7e73

Browse files
Бочарова Дарья МихайловнаБочарова Дарья Михайловна
Бочарова Дарья Михайловна
authored and
Бочарова Дарья Михайловна
committed
gpg
1 parent 8f927c0 commit 55d7e73

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

buildSrc/src/main/kotlin/chat/giga/gigachat.publish.gradle.kts

+1-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010
mavenCentral()
1111
}
1212

13-
extra["signingInMemoryKey"] = readFileAsString(System.getenv("GPG_SIGNING_KEY"))
13+
extra["signingInMemoryKey"] = System.getenv("GPG_SIGNING_KEY")
1414
extra["signingInMemoryKeyId"] = System.getenv("GPG_SIGNING_KEY_ID")
1515
extra["signingInMemoryKeyPassword"] = System.getenv("GPG_SIGNING_PASSWORD")
1616

@@ -42,13 +42,4 @@ configure<MavenPublishBaseExtension> {
4242
url.set("https://github.com/ai-forever/gigachat-java")
4343
}
4444
}
45-
}
46-
47-
fun readFileAsString(filePath: String): String {
48-
val file = File(filePath)
49-
return file.inputStream().use { inputStream: java.io.InputStream ->
50-
inputStream.reader(Charsets.UTF_8).use { reader ->
51-
reader.readText()
52-
}
53-
}
5445
}

0 commit comments

Comments
 (0)