Skip to content

Commit

Permalink
Revert "enable release"
Browse files Browse the repository at this point in the history
This reverts commit 9158835.
  • Loading branch information
francescoDojo committed Sep 24, 2024
1 parent 9158835 commit 7b2603b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions buildSrc/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import com.android.build.gradle.LibraryExtension
import java.io.FileInputStream
import java.util.Properties

/**
* The following plugin tasks care of setting up:
Expand Down Expand Up @@ -51,21 +49,21 @@ val sourcesJar = tasks.register<Jar>("sourcesJar") {
// }

/**Create credentials.properties in root project folder file with gpr.user=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN**/
val credentialProperties = Properties()
credentialProperties.load(FileInputStream(rootProject.file("credentials.properties")))
// val credentialProperties = Properties()
// credentialProperties.load(FileInputStream(rootProject.file("credentials.properties")))

afterEvaluate {

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/Dojo-Engineering/android-dojo-pay-sdk")
credentials {
username = credentialProperties["gpr.user"] as String
password = credentialProperties["gpr.key"] as String
}
}
// maven {
// name = "GitHubPackages"
// url = uri("https://maven.pkg.github.com/Dojo-Engineering/android-dojo-pay-sdk")
// credentials {
// username = credentialProperties["gpr.user"] as String
// password = credentialProperties["gpr.key"] as String
// }
// }
}

publications {
Expand Down

0 comments on commit 7b2603b

Please sign in to comment.