maven-publish
Publish Java artifact to Maven Local with Gradle
The correct task to publish artifacts to local maven is gradle publishToMavenLocal
Upload artifact to Artifactory using Gradle
That’s because you don’t have any publications. The artifactory-publish plugin works with maven-publish plugin and uploads publications. If you prefer working with the old maven plugin, you need artifactory plugin, not artifactory-publish. Take a look at the Overview part in “Working with Gradle” page of the official docs.
Publish an Android library to Maven with AAR and sources JAR
Current answer With Android Gradle Plugin 7.1 it is now very simple to do this without needing any complicated scripts. AGP now also handles creating source and javadocs jar. You don’t need any separate scripts, just write everything into your build.gradle file of your module: plugins { … id ‘maven-publish’ } android { … publishing … Read more
How do you set the maven artifact ID of a Gradle project?
From 36.2.3. Identity values in the generated POM publishing { publications { maven(MavenPublication) { groupId ‘org.gradle.sample’ artifactId ‘project1-sample’ version ‘1.1’ from components.java } } } The artifact ID defaults to the project name configured in settings.gradle, which in turn defaults to the project directory’s name. You’ll need the appropriate plugin. plugins { id ‘maven-publish’ }