Hello,
let’s say I have a property in gradle.properites
my.precious.property=log-cabin
I can evaluate it in settings.gradle like:
if (“$my.precious.property”==‘shocking-shack’) …
Could I evaluate the property:
my.artifactory.remote.caching.proxy=https://myJFrog:8081/artifactory/gradle-dist-remote
some way in gradle-wrapper.properties, e.g:
distributionUrl=“$my.artifactory.remote.caching.proxy”/gradle-8.5-bin.zip ???
I am asking because it looks that even if I tunnel all my dependency resolution through a single artifactory system(repo) I must declare the origin of the system 3 times:
- for java plugin - repositories and publishing
- for pluginManagement/repositories
- for gradle wrapper distribution
For 1. and 2. there is a way to have only single origin reference by defining it and evaluating as a gradle property, but what about the wrapper?
More general it is a question of using gradle properties in other gradle scripts: settings, wrapper properties, plugin scripts etc