buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://maven.test.com/artifactory/test-repo'
credentials {
username = (project.hasProperty( "mavenUsername" ))?project.mavenUsername:""
password = (project.hasProperty( "mavenPassword" ))?project.mavenPassword:""
}
}
dependencies {
classpath "com.test.gradle:test-gradle-plugin:1.1.2"
}
}
}
apply plugin: ‘testgradleplugin’
Here is the snippet of my code. When I push my code to gitlab SAST failed with the following error
Could not get unknown property ‘mavenUsername’ for Credentials [username: null] of type org.gradle.internal.credentials.DefaultPasswordCredentials_Decorated.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org…
Have any one come across this kind of issue. Any help is appreciated.
Thanks
Paddy