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

Publish Debug and Release builds to maven local as aars

I'm trying to publish an aar locally to /.m2 directory using the maven-publish Gradle plugin. With the below code, I can publish the release version (with PTML), but not the debug one. I would like to publish either a release or a debug one with…
0
votes
1 answer

How to resolve "Could not find match for name 'withXml'" output?

In a Java library project of mine I have the following Gradle task defined apply plugin: 'java' apply plugin: 'maven' apply plugin: 'maven-publish' apply plugin: 'jacoco' ... task createPom() { pom { project { groupId…
JJD
  • 50,076
  • 60
  • 203
  • 339
0
votes
1 answer

what command will accomplish a successful push to a s3 bucket using maven-publish

publishing maven repo to s3 assuming I have credentials and an existing bucket. What command do I call in order to run the publishing part of the build. With mavenDeployer I was using gradle uploadArchives but now I cant figure out how to get this…
Tzvetlin Velev
  • 1,897
  • 2
  • 17
  • 31
0
votes
1 answer

How can I compare the artifacts that would be published with a specific version in my maven repository?

I'm using Gradle's maven-publish plugin to publish artifacts to a maven repository. I'd like to have a programmatic way to tell to tell if the artifacts that my current build would publish are identical to those of a specified previously published…
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
0
votes
1 answer

gradle maven-publish plugin only publishing first sub-modules artifacts

I have a multi-module project as follow: top-level-module sub-module-1 sub-module-2 sub-module-3 Top level module gradle config looks like this: ... def javaProjects() { subprojects.findAll { new File(it.projectDir,…
Farrukh Najmi
  • 5,055
  • 3
  • 35
  • 54
0
votes
1 answer

doLast gradle task not running

I've a custom task that depends on the maven-publish plugin. My custom task needs some arguments from the the command line before the maven-publish plugin should run. For that I tried the doLast closure on my custom task however the publish task is…
Umer Farooq
  • 7,356
  • 7
  • 42
  • 67
0
votes
1 answer

How can I publish many dependant subprojects in a certain order with gradle?

I'm trying to publish two subprojects with gradle. I have two subprojects: SubprojectA is dependant on SubprojectB. I want to publish them both using maven-publish. I have this in build.gradle: plugins { id 'java' id…
Kuranes
  • 197
  • 1
  • 12
0
votes
1 answer

Upload file to Artifactory with Gradle without maven publish

Is it possible to just upload a file to an Artifactory repository with Gradle and without using the maven-publish plugin? All I want to do is upload any file to a specific repository location. Here is the publishing snippet: publishing { …
Juergen
  • 3,489
  • 6
  • 35
  • 59
0
votes
1 answer

Maven dependencies not published with Gradle

I have the following build.gradle: group 'org.inthemoon.spring' version '1.1-SNAPSHOT' apply plugin: 'java' apply plugin: 'idea' apply plugin: 'maven' apply plugin: "maven-publish" sourceCompatibility = 1.8 repositories { mavenLocal() …
Dims
  • 47,675
  • 117
  • 331
  • 600
0
votes
0 answers

Bintray plugin does not pick up the artefact version

I am trying to deploy my artefacts to Bintray with the official Gradle plugin. Contrary to my expectations, the plugin does not use the version which is set in the build.gradle, but autogenerates a random version string like…
user7621344
0
votes
0 answers

Android: library project with play-services-auth results in NoClassDefFoundError

(This is basically the same question as in Android: library project with Retrofit results in NoClassDefFoundError but for play-services-auth). I'm trying to build an android library project which uses play-services-auth to access SmartLock for…
hardysim
  • 2,756
  • 2
  • 25
  • 52
0
votes
1 answer

Android: library project with Retrofit results in NoClassDefFoundError

I'm trying to build an android library project which uses OkHttp and Retrofit to grant access to our REST-backend. It seems to be working as long as I use api instead of implementation on my gradle-dependency for…
hardysim
  • 2,756
  • 2
  • 25
  • 52
0
votes
0 answers

Nexus update buildNumber maven-metadata.xml

I am uploading build from Jenkins into Nexus repository. In case a build is successful it is uploaded with an increased buildNumber from maven-metadata.xml which is stored on Nexus. However, sometimes our builds fail which means we do not upload…
Adam
  • 884
  • 7
  • 29
0
votes
1 answer

Publish source jar when reading external .gradle file

I have a git submodule (of which I have no control of) in my project which contains file named publish.gradle. The contents of this file are: apply plugin: 'com.jfrog.artifactory' apply plugin: 'maven-publish' version = System.getenv()['VERSION']…
mmjmanders
  • 1,533
  • 2
  • 13
  • 32
0
votes
1 answer

Gradle Nexus and FlatDir deployment without java-, ear- or war-plugin

I have a multi-project gradle (version 2.1!!) build consisting of non-java projects. I would like to deploy the generated artifacts (.tar.gz files) to a Nexus and also to a directory. Currently I define the repositories in the root build.gradle in…
Dominik
  • 141
  • 1
  • 3
  • 14
1 2 3
14
15