Skip to content

Commit 4e20cc2

Browse files
author
Jan Phillip Kretzschmar
committed
feat: improve example in readme
1 parent 0017d68 commit 4e20cc2

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

README.md

906 Bytes

build.gradle

buildscript {
    repositories {
        mavenCentral()
    }
    
    dependencies {
        "com.valtechmobility.gradle.credentials.onepassword:$CURRENT_VERSION"
        "com.valtechmobility.gradle.plugin.credentials.onepassword:$CURRENT_VERSION"
    }
}

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

repositories {
    
}
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)
            }
        }
    }
}

0 commit comments

Comments
 (0)