Hi, Any clues? If the problem is not well described I could try and rephrase the issue.
Knowing if it were possible to exclude/remove default configuration2scope mappings would be of help. Thanks and regards, - Ashish On Sun, 3 Apr 2011 13:49:39 +0530 Ashish Shinde <[email protected]> wrote: > Hi, > > I have a build script for a webservice module that needs to publish > the service war and the java client to a maven repository. I have a > "wsclient" configuration for the client dependencies and I want the > client artifact to be published with only the dependencies from the > "wsclient" configuration. > > Here is the relevant portion of the gradle build > > configurations { > deployerJars > jaxws > wsclient > } > > uploadArchives { > repositories.mavenDeployer { > ..... > > // Create filters for the client and the service war > addFilter('client') {artifact, file -> > artifact.name == project.name + "-client" > } > > addFilter('war') {artifact, file -> > artifact.name == project.name > } > > // Apply custom dependencies to the client > pom('client').getScopeMappings().setSkipUnmappedConfs(true) > pom('client').getScopeMappings().addMapping(1000, > configurations.wsclient, "compile") > } > } > > I went over the javadocs for MavenPom, ConfigurationContainer, > Conf2ScopeMappingContainer but could not find a way to remove the > mapping from the gradle compile configuration to maven "compile" > scope. > > The possibilities are > 1. create a > with just "wsclient" and use MavenPomsetConfigurations(). But I could > not find a way to create a ConfigurationContainer > 2. remove mappings from Conf2ScopeMappingContainer. But no method for > that as well. > > Thanks and regards, > - Ashish > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
