How can i define properties lile repo.url? Example für Read… if (project.hasProperty(“repo”)) {
repository(url: project.repo.url) {
authentication(userName: project.repo.username, …
Thanks for help
How can i define properties lile repo.url? Example für Read… if (project.hasProperty(“repo”)) {
repository(url: project.repo.url) {
authentication(userName: project.repo.username, …
Thanks for help
You can’t, at least not in a sensible way. You could define a property that can be read with ‘property(“project.repo.url”)’, but it’s best avoided.
Property names with dot (.) in them are fine when defined in your ‘gradle.properties’ file. Additionally, you could use a map.
ext {
repo = [
url : ‘http://foo.org’,
username : foo,
password : bar
]
}
You could then use ‘repo.url’ within your build script.