We are using artifactory to publish the build artifacts.
When we add a polymer client module to the project then we get following exception while building:
Configuration named 'archives' does not exist for project ':app-polymer-client'
We use following build extension to publish the artifacts
allprojects {
apply plugin: "com.jfrog.artifactory"
}
artifactoryPublish.skip = true
artifactory {
contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = 'gradle-build'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
defaults {
publishConfigs('archives') // we always use archives
publishArtifacts = true
publishBuildInfo = true
publishPom = true
publishIvy = false
}
}
}
How we can add an configuration named ‘archives’ to the polymerClientModule configuration?
How we can add further the generation of a deployable web archive for the Polymer client?
Something like?
apply plugin: 'war'
...
war {
archiveName = 'WebDeployment.war'
into 'polymer-client', {
from 'build-dir-polymer-client'
}
}