mark-vieira / gradle-maven-settings-plugin

Gradle Maven settings plugin
Apache License 2.0
60 stars 27 forks source link

Is there out-of-the box support to configure userSettingsFileName from command line? #14

Open sslavic opened 7 years ago

sslavic commented 7 years ago

At the moment I have

mavenSettings {
  userSettingsFileName = project.properties['userSettingsFileName'] ?: System.getProperty("user.home") + "/.m2/settings.xml"
}

in my build.gradle to make it possible to pass -PuserSettingsFileName=settings.xml from command line to the build. Is there better out-of-the-box way to achieve this?