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…
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…
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…
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…
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,…
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…
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…
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 {
…
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()
…
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…
(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…
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…
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…
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']…
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…