'uploadArchives' succeeds on empty URL


(Attila Kelemen) #1

When I specify an empty string for the repository URL of the ‘uploadArchives’ task, the task will report success when executed. What did actually happen? Did it publish the artifacts anywhere?

The configuration of the task is the following:

uploadArchives {

repositories {

mavenDeployer {

repository(url: ‘’) {

authentication(userName: ‘’, password: ‘’);

}

snapshotRepository(url: ‘’) {

authentication(userName: ‘’, password: ‘’);

}

}

}

}

and this is the output of uploadArchives:

Uploading: [relative path of artifact] to repository remote at

Transferring 26K from remote

Uploaded 26K


(René Groeschke) #2

Hello Attila, your snippet currently defaults to an absolute path where the file is stored on your local machine. While reproducing this on my mac the uploadArchives tries to put the artifact into a directory structure with the pattern: “/group/name/version”. This is not a very sensible default for an empty url string. I raise an issue for that.

cheers, René