gradle
8.5

# versionMapping

abstract fun versionMapping(configureAction: Action<out Any>)(source)

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

#### Parameters

configureAction

the configuration