Skip to content

Commit

Permalink
[Gradle Release Plugin] - pre tag commit: '2021.1-0.1.3'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko Stotz committed Nov 7, 2023
1 parent 5b88ff9 commit 234b9c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// based on /~https://github.com/specificlanguages/mps-gradle-plugin-sample

import org.apache.tools.ant.taskdefs.condition.Os
import java.util.*

plugins {
id("com.specificlanguages.mps")
Expand Down Expand Up @@ -132,11 +133,18 @@ tasks.withType(Sign::class) {
onlyIf("isReleaseVersion is set") { isReleaseVersion }
}

fun base64Decode(encodedString: String?): String? {
if(encodedString != null) {
return encodedString.replace("\\n", "\n")
}
return null;
}

signing {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
useGpgCmd()
}
val signingKey: String? = System.getenv("SIGNING_KEY")
val signingKey: String? = base64Decode(System.getenv("SIGNING_KEY"))
val signingPassword: String? = System.getenv("SIGNING_PASSWORD")
if (signingKey != null && signingPassword != null) {
println("using inMemory keys with size ${signingKey.length}/${signingPassword.length}, releaseVersion: ${isReleaseVersion}")
Expand All @@ -152,4 +160,8 @@ release {
requireBranch.set("")
pushToRemote.set("origin")
}
failOnCommitNeeded.set(false)
failOnPublishNeeded.set(false)
failOnUnversionedFiles.set(false)
failOnUpdateNeeded.set(false)
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.1.3-SNAPSHOT
version=0.1.3
versionSuffix=2021.1
lionwebJavaVersion=0.1.2
mpsVersion=2021.1.4
Expand Down

0 comments on commit 234b9c9

Please sign in to comment.