Custom layout based resolution with the Gradle Artifactory Plugin

JFrog Support
2016-10-06 13:35

The Ivy{} block can be used to enforce resolution from Artifactory based on a custom layout with the Gradle Artifactory Plugin. The layout can be constructed from more than just the predefined [ ] tokens (org/module/revision etc), with the usage of variables – 

artifactLayout ="[organization]/[module]/[revision]/$var/[module]-[revision]-$var(-[classifier]).[ext]"

See this build script for an example on how to implement the Ivy{} scope inside a build script.