I'm using the 'maven-publish' plugin by gGradle and it putting a suffix after actual version, which I want to avoid. because in the next step of my CI it trying to download the .jar and the curl command is downloading nothing.
I can connect to my nexus and upload via ./gradlew publish Optional<VERSION=0.0.1> but the plugin (I think) is added a timestamp, is looking like this:
a/b/c/ARTIFACT-NAME/0.0.1-SNAPSHOT/ARTIFACT-NAME-0.0.1-20190114.134142-8.jar
How can I disable the feature of timestamp in the plugin?
That's my publishing task:
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
if (project.version.endsWith('-SNAPSHOT')) {
url deployNexusSnapshotUrl
} else {
url deployNexusReleaseUrl
}
credentials {
username = deployNexusUsername
password = deployNexusPassword
}
}
}
}