maven - build.gradle - error deploying artifact -



maven - build.gradle - error deploying artifact -

i'm having issues publishing local nexus maven repository.

i admit, don't have much experience using gradle.

i have tried understanding documentation , examples given through gradle website (along few stackoverflow questions).

i getting next error when seek publish:

execution failed task ':publishmavenpublicationtomavenrepository'. > failed publish publication 'maven' repository 'maven' > error deploying artifact 'com.myproject:myproject-sdk:jar': error deploying artifact: resource deploy not found: file: http://git.site.com:8081/nexus/content/repositories/releases/com/myproject/myproject-sdk/3.0.0/myproject-sdk-3.0.0.jar not exist

the entire build.gradle file looks this:

apply plugin: 'java' apply plugin: 'maven-publish' apply plugin: 'build-version' buildscript { repositories { maven { url "http://git.site.com:8081/nexus/content/groups/public" } maven { url 'https://geonet.artifactoryonline.com/geonet/public-releases' } mavencentral() } dependencies { classpath 'nz.org.geonet:gradle-build-version-plugin:1.+' } } repositories { maven { url "http://git.site.com:8081/nexus/content/groups/public" } } dependencies { testcompile group: 'junit', name: 'junit', version: '4.11' compile 'com.google.code.gson:gson:2.2.4' compile 'commons-codec:commons-codec:1.9' } task sourcejar(type: jar) { sourcesets.main.alljava } publishing { publications { maven(mavenpublication) { artifactid = 'myproject-sdk' groupid = 'com.myproject' version '3.0.0' components.java artifact sourcejar { classifier "sources" } } } repositories { maven { // nexus maven credentials credentials { username "my_username" password ""my_password" } if(version.endswith('-snapshot')) { url "http://git.site.com:8081/nexus/content/repositories/snapshots" } else { url "http://git.site.com:8081/nexus/content/repositories/releases" } } } }

i using android studio , project java project.

i don't understand message because says "resource deploy not found" , points url @ nexus.

i expect message "resource deploy not found: file: c:/directory_that_doesn't_exist/whatever.jar"

additional info - gradle tasks listed under 'all tasks' are:

assemble build builddependents buildneeded check classes clean compilejava compiletestjava generatepomfileformavenpublication jar javadoc processresources processtestresources publish publishmavenpublicationtomavenlocal publishmavenpublicationtomavenrepository publishtomavenlocal sourcejar test testclasses

maven gradle

Comments

Popular posts from this blog

Php operator `break` doesn't stop while -

ubuntu - Bash Script to Check That Files Are Being Created -

vim: Search & replace -