Skip to content

Commit 34c792a

Browse files
committed
Adding credentials to Gradle
1 parent 51c34b4 commit 34c792a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ plugins {
1717
id 'idea'
1818
id 'pl.allegro.tech.build.axion-release' version '1.4.1'
1919
id "com.github.maiflai.scalatest" version "0.14"
20+
id 'nu.studer.credentials' version '1.0.3'
2021
}
2122

2223
repositories {
@@ -91,4 +92,8 @@ scmVersion {
9192
pre 'fileUpdate', [files: sourceFiles, pattern: { v, c -> /@version $v/ }, replacement: { v, c -> "@version $v" }]
9293
pre 'commit'
9394
}
95+
repository {
96+
customUsername = System.getenv("GITHUB_USERNAME") ?: credentials.githubUsername
97+
customPassword = System.getenv("GITHUB_PASSWORD") ?: credentials.githubPassword
98+
}
9499
}

0 commit comments

Comments
 (0)