I have 2 modules, first one is module-to-publish, second one is module-base. Now I want to publish module-to-publish to mavenCentral with module-base inside. What should I do to include module-base.
I have a groovy library that I publish as a jar file on a nexus repository. When I use extension methods in the library from another project's Gradle script, I get a MissingMethodException.
As a reference, say I have a String extension method, such…
gradle 6.x release notes tells us that maven-publishing of boot-jars doesn't work because the default jar task is disabled by the spring-boot plugin.
A workaround is to tell Gradle what to upload. If you want to upload the bootJar, then you need to…
I am trying to upload a library to mavencentral for the first time. I get to build and run some tasks from maven-publish gradle plugin. But, On publish task, I get below error.
* What went wrong:
Execution failed for task…
I have an Android .aar project called "myLibAndroid". The directory structure has a root-level "build.gradle" file and a sub-directory called "library" that also contains a "build.gradle" file. The .aar file builds fine but fails to publish to…
Ok, so I am having the exact issue as described here:
Android library dependencies missing from POM with Gradle
I copied the provided answer to my gradle file as follows:
publishing {
publications {
mavenAar(MavenPublication) {
…
I am trying to get a jar generated so I can use it as a dependency for a different project.
In the build.gradle, I have defined the maven-publish id and the publishing tasks, but only the following files are generated - but I need the…
After upgrading Gradle from 6.8 to 7.1.1 I'm getting:
A problem occurred evaluating script.
> Failed to apply plugin class 'org.gradle.api.publish.plugins.PublishingPlugin'.
> Cannot run Project.afterEvaluate(Action) when the project is already…
II'm trying to publish my lib but i'm having some problems related to its publication.
I'm using this library https://github.com/vanniktech/gradle-maven-publish-plugin to publish my project on maven central (oss), but, this for some reason only…
I am working on a flutter project and I am building aar out of it. This aar I am able to integrate into my native android project by following the instructions provided by the flutter.
But my problem is that this aar is integrated locally. I want to…
I can publish artifacts using the JFrog Bintray Gradle plugin, but am getting a 405 when trying to use maven-publish plugin.
All the examples I've found use the JFrog plugin.
My Bintray repo is a Maven one and would like to stay with the generic…
I am trying to publish an RPM artifact from our project into a Yum Repo on Nexus via Gradle:
publishing {
repositories {
ivy {
url 'http://myrepo:8081/repository/myproject'
credentials {
username…
I am using maven-publish plugin in gradle to publish artifacts. I need to generate a POM file that contains dependencies so that my consumers can fetch the needed dependencies.
Since maven-publish does not by default contains dependencies onto POM…
I recently published a package to bintray and added it to jcenter now, which enables me to publish my snapshots to oss.jfrog.org. I am using the bintray-sbt
plugin for publishing.
To publish snapshots i added the following directive to my…