String toGradleArtifactPath ( ArtifactCoordinates artifactCoordinates ) { // e.g.: org/jboss/ws/cxf/jbossws-cxf-resources/5.1.5.Final/jbossws-cxf-resources-5.1.5.Final String pathWithMissingClassifier = artifactCoordinates . relativeArtifactPath ( ' ' ) ; StringBuilder sb = new StringBuilder ( pathWithMissingClassifier ) ; if ( artifactCoordinates . getClassifier ( ) != null && artifactCoordinates . getClassifier ( ) . length ( ) > 0 ) { // org/jboss/ws/cxf/jbossws-cxf-resources/5.1.5.Final/jbossws-cxf-resources-5.1.5.Final-wildfly1000 sb . append ( "-" ) . append ( artifactCoordinates . getClassifier ( ) ) ; } return sb . toString ( ) ; }
Build the artifact path including the classifier .