maven-publish Questions
12
I have an Android project with multiple modules and I want to publish them to self-hosted maven repo. I earlier had the publishing code present in individual modules and things worked just fine. I ...
Pointenoire asked 25/4, 2021 at 12:57
8
Solved
With Gradle 7.2 and these plugins:
plugins {
id 'com.android.library' // Android Gradle Plugin 7.1.2
id 'maven-publish'
}
It still works, but gives me this deprecation warning:
WARNING: Softwar...
Chlorous asked 5/3, 2022 at 19:30
2
Solved
I am trying to publish my Java Library to Maven Central. A part of this involves using the signing gradle plugin to sign the artifacts. I need to sign it without using the keyring file as document ...
Baccy asked 13/9, 2019 at 9:53
7
Solved
Can somebody give me a hint on how to use the maven-publish Gradle plugin to publish a com.android.library project/module with AAR and source jar? I am able to do this with the old maven plugin - b...
Manifold asked 11/11, 2014 at 21:1
6
Solved
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?
Rabb asked 19/1, 2017 at 15:44
5
Solved
TL'DR: In this Android Kotlin library I updated from Gradle 5.6.4 to 6.6.1 (commit d5d8d2). Now I cannot build a project depending on the aar anymore.
Test setup
I build and deploy the aar to maven...
Faultless asked 21/11, 2020 at 16:51
5
Solved
I am facing a problem when trying to install a generated jar into my local Maven Repository. The message error just show me 'task 'publish' is not found'
I am using this Gradle Script:
buildscript ...
Hanafee asked 29/1, 2016 at 21:49
1
I'm using Gradle to publish to a local Artifactory repository. I generate 3 jars during the build: one classic jar with .class, one with javadoc (-javadoc.jar) and one with sources (-sources).
I w...
Operative asked 8/3, 2016 at 13:44
3
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(RepositoriesM...
Sump asked 14/1, 2022 at 11:35
5
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 ...
Bilberry asked 8/4, 2019 at 17:47
1
Solved
I have a pretty simple Gradle Kotlin project.
plugins {
id 'application'
id 'maven-publish'
}
repositories { mavenCentral() }
dependencies {
compile 'com.google.guava:guava:31.1-jre' // 'compi...
Isogamete asked 12/7, 2022 at 12:15
2
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 probl...
Squib asked 9/6, 2020 at 14:1
5
Solved
I am a newbie to Gradle and Artifactory and I want to upload a JAR file to Artifactory.
Here is my build.gradle file:
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin...
Blinkers asked 12/3, 2014 at 13:4
9
Solved
From the gradle maven-publish plugin's documentation, it's clear that you set the groupId and version of the project directly in build.gradle:
group = 'org.gradle.sample'
version = '1.0'
However...
Pitching asked 18/7, 2014 at 14:43
3
I have 2 lib modules : library , library2, and use android-maven-publish to publish my multi-modules android project with multi-productFlavors
build.gradle in library:
apply plugin: 'com.android....
Danner asked 9/7, 2018 at 14:23
2
Solved
I am looking for working documentation on how to publish a library to the public Maven repository using Gradle 7.0.
I have signed up for an account at Maven (Sonatype Actually), have jumped through...
Martel asked 29/12, 2021 at 20:39
1
Solved
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...
Danford asked 12/11, 2021 at 21:32
3
Solved
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 {
publicati...
Chitin asked 7/10, 2015 at 17:27
0
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...
Cysticercoid asked 9/9, 2021 at 15:4
6
Solved
I have a sample project with the following hierearhy:
Sample (root)
-- model (simple jar)
-- api (springboot jar)
I want to publish both generated jars: plain jar & bootJar to my localRepo...
Bartolommeo asked 13/4, 2020 at 22:44
3
I'm using maven-publish plugin in Gradle to publish my Spring Boot application jar. I run the usual task: ./gradlew artifactorypublish. However, the following error appeared, which I couldn't under...
Ranchod asked 29/4, 2020 at 11:37
0
I have a gradle multiproject with the following structure:
root
│
├── core-library
│ └── build.gradle
│
├── additional-feature-library
│ │
│ ├── entities
│ │ └── build.gradle
│ │
│ └── build.gradl...
Influenza asked 26/3, 2020 at 11:11
1
Solved
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....
Urion asked 25/2, 2020 at 18:58
0
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 lik...
Borderline asked 27/11, 2019 at 19:51
2
Solved
I use maven-publish plugin for deploying android library(.aar).
My library has another dependencies, which are also .aar
How can I import all dependencies from build.gradle, dependencies section:...
Percent asked 27/12, 2015 at 20:53
1 Next >
© 2022 - 2024 — McMap. All rights reserved.