Changing the published artifact name


(Justin Lee) #1

How can I change a project’s artifact name to differ from the directory it’s in? I need something like maven’s “artifactId” setting so when I push to maven central my artifact names don’t change after changing the build to gradle.


(Benjamin Muschko) #2

Are you using the Maven plugin or the new Maven publishing plugin?


(Justin Lee) #3

I’m actually using your nexus plugin. :slight_smile:


(Benjamin Muschko) #4

Haha, OK. Can you open an issue on the plugin’s GitHub repository? We can take it from there.


(Justin Lee) #5

i sure can. i also need to file one about 0.4 suddenly screaming:

  • What went wrong: Execution failed for task ‘:install’. > Could not publish configuration ‘archives’

A distributionManagement element or remoteRepository element is required to deploy


(Justin Lee) #6

done. https://github.com/bmuschko/gradle-nexus-plugin/issues/15