version Mapping
Configures the version mapping strategy. For example, to use resolved versions for runtime dependencies:
plugins {
id 'java'
id 'ivy-publish'
}
publishing {
publications {
maven(IvyPublication) {
from components.java
versionMapping {
usage('java-runtime'){
fromResolutionResult()
}
}
}
}
}
Content copied to clipboard
Since
5.4
Parameters
configure Action
the configuration