Questions tagged [maven-publish]

A Gradle plugin for publishing build artifacts to an Apache Maven Repository.

https://docs.gradle.org/current/userguide/publishing_maven.html

219 questions
0
votes
1 answer

Can publish to mavenLocal but not remote repo?

$ ./gradlew -version ------------------------------------------------------------ Gradle 6.5 ------------------------------------------------------------ Build time: 2020-06-02 20:46:21 UTC Revision: …
Chris F
  • 14,337
  • 30
  • 94
  • 192
0
votes
1 answer

Publishing a jar artifact with predefined POM

How to publish an artifact with a given (prêt-à-porter) POM file? if it is possible, please, advise when and how to set it before calling the publishing task.
0
votes
1 answer

Authenticate Maven Publish plugin for Gradle

I am trying to publish an artifact to Maven Central. I am using Gradle's plugin, Maven Publish. From what I have gathered, I need to put my credentials in a file, gradle.properties. I have done so and placed that file in my ~.gradle directory. I…
Suede
  • 416
  • 2
  • 5
  • 16
0
votes
1 answer

Including transient dependencies with Gradle Module Metadata

I've run into an issue while using the maven-publish plugin for this Android library I'm developing. I've looked at similar posts on SO and other forums as well, and my issue is still persisting. scenario: I have Library A which includes the core…
0
votes
1 answer

How to include only specific files from the main/java to be part of jar to be published to using gradle?

I don't want the whole main/java to be pushed as Jar Instead, I want only specific folders inside main/java to be part of the jar. How do I achieve it?
Saket Singh
  • 53
  • 1
  • 1
  • 5
0
votes
1 answer

gradle maven publish plugin : unable to upload zip via `publish`

I am trying to write a build.gradle for my Spring boot Application.(gradle v.6.5.1) After build, I want to deploy it to the private Nexus repo.(with asset zip file) The problem is... When I execute command gradle build publish --debug, It uploads…
Juneyoung Oh
  • 7,318
  • 16
  • 73
  • 121
0
votes
0 answers

Is there a Gradle equivalent to the publishToMavenLocal task of the maven-publish Gradle plugin

I apply plugin: 'maven-publish' in my build.gradle in order to install artifacts into the local ~/.m2 Maven repository by executing gradle publishToMavenLocal. I have now searched for a while and I found lots of information on how to…
aboger
  • 2,214
  • 6
  • 33
  • 47
0
votes
1 answer

Why does Github Package Registry say my token is not scoped to read packages?

I'm trying to publish a Gradle project. I have followed all the documentation provided by GitHub, but when I send the command to publish I am getting a 401 error from the server. Execution failed for task…
Taylor Burke
  • 424
  • 4
  • 15
0
votes
0 answers

Function of the extra .pom file with a jar in Jfrog Artifactory

I am using a gradle maven-publish plugin to deploy the artifact in the Artifactory. I can see that a folder with the package is being created but in that folder only the jar file exits and no .pom file exits. Normally in the artifactory publish…
Myth
  • 86
  • 2
  • 10
0
votes
1 answer

Sharing uploadArchives task across modules

I'm working on a repo with a set of releasable libraries each in a module. The idea is each library should be able to be released individually with i.e., ./gradlew upload. Currently in each module I have the following code to publish…
H.Nguyen
  • 1,621
  • 5
  • 19
  • 31
0
votes
1 answer

Failed to notify build listener Gradle Artifactory Plugin

I'm trying to publish an artifact to jfrog artifactory using gradle. I figured out that Gradle Actifactory Plugin might be the one I need. Unfortunately, upon calling gradlew -i artifactoryPublish an error is thrown : Exception…
Mycotina
  • 369
  • 3
  • 11
0
votes
1 answer

Magic with publishing section in artifactoryPublish configuration

I faced some magic behaviour in build.gradle configuration. I'm trying to enable artifactoryPublish for project with subprojects. I have the following structure root --subproj1 --subproj2 --common gradle version 6.0.1 Case 1 on root level i have…
0
votes
0 answers

Getting newly published package from JitPack fails

I'm trying to publish my java library to JitPack using the maven-publish plugin in Gradle. I have done all that the docs have said, and JitPack says publishing was a success, but it seems like I cannot install my library, even if I just copy and…
0
votes
1 answer

Publish local Maven project to local Gradle repository

I have a Java Maven project. Is it somehow possible to publish my Maven project with Maven into my local Gradle repository? Is there maybe some plugin for this?
Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109
0
votes
1 answer

Android AAR artifactory publish executes before assemble

I have an Android library project and I am trying to publish the AAR files to JFrog artifactory using gradle. Once I have the AAR files and when I execute the build task, the publish is working as expected, the problem is that I am not able to do it…
rahu1613
  • 111
  • 9