When i sync project, android studio warn could not get unknown property 'bundleRelease' for object of type org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication.
I add project.afterEvaluate{//block},but it doesn't work. What…
I try to publish a library to a private S3 maven repository. The upload is guarded by a password, but for download the library is open for public. The aar file uploads without issues (along with pom/md5/sha1) and I can see it in my S3 bucket,…
I have a project which has a SharedCode (Java) module and secondly an Android (Android library) module which depends on the SharedCode module. I've previously been using the maven plugin in my build.gradle files and I've been using the…
I have a library (my own) in a private maven repo. I ship it there with javadoc and sources:
In my app I've declared this repo:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
…
I'm using following setup:
gradle 5.2.1
nexus publish
lombok 1.18.6
lombok gradle plugin io.freefair.lombok 3.1.4
I would like to upload sourceJar to nexus after delombok is done.
For maven publishing I use the following:
task javadocJar(type:…
I have project structure with 3 modules: :library, :shared and :internal.
Dependencies between them are following:
:library --depends on--> :internal via implementation
:library --depends on--> :shared via api
:internal --depends on--> :shared via…
I use the gradle (2.9) maven-publish plugin to publish a file to a private nexus maven repo. The build.gradle file is
apply plugin: 'maven-publish'
publishing {
repositories {
maven {
name "example-maven"
url…
I write some library, which has a portion of UI. Also, this library uses another libraries.
I want to provide release .aar to use this portion of UI in any App.
My library has next dependecies:
compile 'com.android.support:appcompat-v7:23.1.1'
…
maven-publish plugin posts JAR with name in format of "project-1.0-all.jar"
I used Maven, everything was OK. Now I've migrated to Gradle with maven-publish plugin.
Here is my publishing Gradle build-script section
publishing {
…
I'm having a hard time publishing a Java library in its 0.0.1-SNAPSHOT version to GitHub Packages.
The library is a Gradle project. It would appear that, when the version is not on GitHub (yet), it gets created successfully, however after that, it…
I have a library containing usual classes and those especially for unit tests. So I want to publish two separate artifacts from the same project. My working solution with the maven plugin looks like this:
task jarTest (type: Jar, dependsOn:…
I have a Java project that makes use of Gradle to build and package. My purpose is to create artifacts that are published to Maven Central.
As a first step, I configured my Gradle project as shown in the following example from the…
I have a multi-project gradle build and I have applied the maven-publish plugin to all subprojects in my master build file.
I have also defined a default publication there called mavenJava.
This is all fine and now when I run ./gradlew…
After a publish, I want to know what the url of the published artifact is (to use it in other gradle tasks for automated deployment).
Is there any way to capture this generated url?