File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
22import com.google.protobuf.gradle.ProtobufExtension
33import com.google.protobuf.gradle.proto
4- import java.nio.charset.StandardCharsets
5- import java.util.Base64
64import org.gradle.api.JavaVersion
75import org.gradle.api.distribution.DistributionContainer
86import org.gradle.api.plugins.JavaApplication
@@ -29,13 +27,6 @@ plugins {
2927 alias(libs.plugins.shadow) apply false
3028}
3129
32- fun decodePgpSecret (raw : String ): String =
33- if (raw.contains(" BEGIN PGP" )) {
34- raw
35- } else {
36- runCatching { String (Base64 .getDecoder().decode(raw), StandardCharsets .UTF_8 ) }.getOrElse { raw }
37- }
38-
3930val computedVersion =
4031 providers
4132 .gradleProperty(" releaseVersion" )
@@ -63,7 +54,7 @@ val javacTestJvmOptions = javacModuleOptions.map { it.removePrefix("-J") }
6354val catalog = libs
6455val protobufVersion = catalog.versions.protobuf.asProvider().get()
6556val repositoryUrl = " https://github.com/sourcegraph/scip-java"
66- val signingKey = providers.environmentVariable(" PGP_SECRET" ).map(::decodePgpSecret)
57+ val signingKey = providers.environmentVariable(" PGP_SECRET" )
6758val signingPassword = providers.environmentVariable(" PGP_PASSPHRASE" )
6859
6960allprojects {
You can’t perform that action at this time.
0 commit comments