You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publishing {
repositories {
maven {
// change to point to your repo, e.g. http://my.org/repo
url = uri(layout.buildDirectory.dir("repo"))
}
}
}
However, Project.uri causes the type to be resolved right away, thus if the buildDirectory value is changed after this code is executed, the value set is obsolete.
Context
Attempting to write publishing code for our libraries that is not sensitive to when the buildDirectory is changed.
The text was updated successfully, but these errors were encountered:
Expected Behavior
A way to set maven publishing directory in a lazy way so that this directory is not resolved at until the task to publish is run or input checked.
Current Behavior (optional)
Gradle publishing docs suggest to use:
However,
Project.uri
causes the type to be resolved right away, thus if the buildDirectory value is changed after this code is executed, the value set is obsolete.Context
Attempting to write publishing code for our libraries that is not sensitive to when the
buildDirectory
is changed.The text was updated successfully, but these errors were encountered: