Skip to content

Commit 14f13eb

Browse files
author
Jan Phillip Kretzschmar
committed
feat: rename OnepasswordAccessCredentials
1 parent 4e20cc2 commit 14f13eb

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

README.md

116 Bytes

With the dependency handling out of the way, the actual maven can now be configured: build.gradle

import com.valtechmobilitty.gradle.credentials.onepassword.OnepasswordAccessCredentials

// Singleton improves performance as accessing the cli is quite slow: 
final def securedMavenCredentials = new OnepasswordAccessCredentials("Example Work Credentials")
import com.valtechmobilitty.gradle.credentials.onepassword.OnepasswordAccessPasswordCredentials
final def securedMavenCredentials = new OnepasswordAccessPasswordCredentials("Example Work Credentials")
allprojects {
    repositories {
        maven {
            url = "https://maven.yourcompany.com/example"
            configuredCredentials = securedMavenCredentials
            authentication {
                basic(BasicAuthentication)
            }
        }
    }
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.gradle.api.credentials.PasswordCredentials
1010
* Not storing the username and password here is very slow (gradle sync takes ~ 3minutes),
1111
* thus username and password are stored here temporarily.
1212
*/
13-
public class OnepasswordAccessPasswordCredentials(
13+
public class OnepasswordAccessCredentials(
1414
private val vaultKey: String
1515
) : PasswordCredentials {
1616

0 commit comments

Comments
 (0)