I am working on a Liferay workspace project. How can I setup the credentials for a maven repository in some external file like gradle.properties in home folder and use it in settings.gradle. I know the above setting will work for build.gradle, but i needed the same for settings.gradle currently my settings.gradle is like below,
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "latest.release"
classpath group: "net.saliman", name: "gradle-properties-plugin", version: "1.4.6"
}
repositories {
maven {
credentials {
username 'user'
password 'pw'
}
url "https://<host>/<url>"
}
}
}