Is it possible to just upload a file to an Artifactory repository with Gradle and without using the maven-publish plugin?
All I want to do is upload any file to a specific repository location. Here is the publishing snippet:
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
updatePlugins(MavenPublication) {
group = 'pluginDescriptor'
version = ''
artifact file('README.txt')
}
}
}
All I want is that the updatePlugins
entry uploads the README.txt
to the relative repository path /pluginDescriptor
.
But README.txt
gets uploaded as pluginDescriptor/nip/nip-.txt
where nip
is the project name.
How can I give a dedicated name without group, artifactID and version?
All examples I could find use the maven-publish plugin which uploades the files according to group, artifactID and version.
Any ideas on how to achieve this?
EDIT: There is a direct possibility how the task can be achieved in an platform independen matter: artifactory-client-java