Skip to content

Commit

Permalink
feat: clear and remove secret creds
Browse files Browse the repository at this point in the history
  • Loading branch information
jidi1f committed Sep 26, 2022
1 parent d4ed48f commit 997db47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
18 changes: 3 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
tasks.register("clean").configure {
delete(rootProject.buildDir)
}

val properties = Properties();
var OSSRHstagingProfileId = ""
var OSSRHusername = ""
var OSSRHpassword = ""
var signingPassword = ""
var signingPass = ""
val file = File(rootProject.rootDir, "local.properties")
if (file.exists()) {
// Read local.properties file first if it exists
Expand All @@ -27,28 +28,15 @@
OSSRHstagingProfileId = properties.getProperty("ossrh.stagingProfileId")
OSSRHusername = properties.getProperty("ossrh.username")
OSSRHpassword = properties.getProperty("ossrh.password")
signingPassword = properties.getProperty("signing.password")
} else {
println("here")
// Use system environment variables
OSSRHusername = System.getenv("OSSRH_USERNAME") ?: ""
OSSRHpassword = System.getenv("OSSRH_PASSWORD") ?: ""
OSSRHstagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: ""
signingPassword = System.getenv("SIGNING_PASSWORD") ?: ""
signingPass = System.getenv("SIGNING_PASSWORD") ?: ""
}

println(System.getenv("OSSRH_USERNAME"))
println(OSSRHusername)
println(OSSRHstagingProfileId)
println(OSSRHpassword)
// fun getCurrentVersion() {
// if(System.getenv("RELEASE_TAG").toBoolean()) {
// project.version = System.getenv("RELEASE_TAG")
// } else {
// project.version = "0.2.3"
// }
// }

nexusPublishing {
repositories {
sonatype{
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ kotlin.code.style=official

signing.keyId=619A4A2B
signing.secretKeyRingFile=../secrets/secring.gpg
signing.password=L3mdZRir9eh8vyUSJQI3

org.gradle.jvmargs=-Xmx2048m -Dfile.encoding\=UTF-8
android.useAndroidX=true
Expand Down
5 changes: 1 addition & 4 deletions xenissuing-android-lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

object AppProp {
const val group = "com.xendit.xenissuing"
const val version = "0.2.5"
const val version = "1.0.0"
}

version = AppProp.version
Expand Down Expand Up @@ -101,14 +101,11 @@ afterEvaluate {
}
}
}
println("here2")
signing {
sign(publishing.publications["release"])
}

}


dependencies {
implementation ("org.bouncycastle:bcprov-jdk15on:1.70")
implementation ("com.sun.mail:javax.mail:1.6.0")
Expand Down

0 comments on commit 997db47

Please sign in to comment.