uploadArchives newbie question

I am building a zip and deploying to a Nexus repo spec’d with mavenDeployer.
I expect the zip to be copied to something like:
http://mynexus:8081/nexus/content/repositories/snapshots/group/product-win/version-SNAPSHOT/product-win-version-20160602.zip
and instead it’s copied to
http://mynexus:8081/nexus/content/repositories/snapshots/upload/product-win/version-SNAPSHOT/product-win-version-20160602.225249-2.zip

Two questions:
(1) Why is ‘upload’ substituted for group in the path? I assume it’s something to do with the mavenDeployer, but I can’t find any info online about it.
(2) Why is the 225249-2 added to the filename? Is the filename pattern configurable?

For reference, my script’s uploadArchives and the tasks that feed them look pretty much like this:
zipTask(type: Zip) { /* creates zip where I expect, containing what I expect */ }
artifacts { archives zipTask }
uploadArchives() {
repositories {
mavenDeployer {
repository(url: ‘http://mynexus:8081/nexus/content/repositories/snapshots’) {
authentication(userName: userStringVar, password: passwordStringVar)
}
pom.version = project.version
pom.artifactId = artifactId
pom.groupId = project.group
}
}
}
where project.version = ‘version’ (actually, 6.0.99-SNAPSHOT), artifactId = ‘product-win’, and project.group = ‘group’ (actually, com.).

I welcome answers to these two questions, particularly (1), thanks in advance for thinking about it!

  1. I am not sure what you are asking

  2. “226249-2” I am guessing this is the second time you published it based on the number “2” at the end. By default, when you publish it will publish a “uniqueVersion”. See here: https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/maven/MavenDeployer.html#setUniqueVersion(boolean)

I found my problem with the destination directory. I was using a string like ‘com.company’; gradle wants a string like ‘com/company’. Apparently, the ‘.’ in the name was something gradle didn’t like, so it apparently substituted ‘upload’ for it.

Now my artifact is copied to:

http://mynexus:8081/nexus/content/repositories/snapshots/com/company/product-win/version-SNAPSHOT/product-win-version-20160602.zip