android-maven-publish | standard Maven Publish plugin to be | Plugin library
kandi X-RAY | android-maven-publish Summary
kandi X-RAY | android-maven-publish Summary
Modification of the standard Maven Publish plugin to be compatible with android-library projects (aar).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of android-maven-publish
android-maven-publish Key Features
android-maven-publish Examples and Code Snippets
Community Discussions
Trending Discussions on android-maven-publish
QUESTION
So I'm trying to setup Maven Publish
in my library which has several modules in it.
I am following this tutorial since the whole process is imo not that well documented on the Android Documentation. However, I am stuck at the point Customizing POM File Generation — Basics. I added the external info in my project build.gradle
and try to add the publishing information in the modules build.gradle
. When I try to sync Gradle I get the following error:
ANSWER
Answered 2021-Apr-23 at 07:44The problem was very simple. Only had to change
QUESTION
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.
I build and deploy the aar to mavenLocal ...
...ANSWER
Answered 2020-Nov-30 at 05:51I have the same problem. I found a temporary solution:
Add the aar
suffix to the error module and make it transitive (or you will loose dependents) e.g.:
QUESTION
ANSWER
Answered 2019-Mar-20 at 21:09Run it with --stacktrace
or --info
or --debug
to see more log outputs information from the terminal for example: ./gradlew compileDebugJavaWithJavac --debug
.
You wi be able to see more info on when and where it stopped the task and why it failed.
QUESTION
I have a project that have the following structure:
projectRoot
build.gradle
module1/
build.gradle
artifact1.aar
module2/ ....
My artifact1.aar is a compiled artifact and i have no access to the sources.
my module 1 gradle build file is the following:
...ANSWER
Answered 2018-Aug-10 at 11:36I used an rxbinding aar for this example.
As you correctly mentioned, there has to be a subproject in the "publisher" project, which must contain the aar, and a build file with the following content:
QUESTION
I develop an android library. The library depends on appcompat-v7
. My consumers also depend on appcompat-v7
. How do I most correctly expose my appcompat dependency from the libray when publishing to a maven repository?
What I'm doing now
- Listing the
appcompat-v7
dependency as animplementation
dependency in the library - Using android-maven-publish to publish POM files which causes the dependency to be listed with Scope "runtime"
Yet with this setup the version preference of the library bleeds onto the consumer. Here is a screenshot from the consumer's project view where the library version is using v27.0.0 and the consumer is set up with 26.1.0:
v27.0.0 takes presedence over v26.1.0, causing compiler errors (because the Fragment signature has changed).
Is there any way to avoid this by configuring the library different, or should this be the result? Am I wrong in assuming that different versions of the appcompat lib should be allowed in the library and in the consuming app? Should I instead publish multiple binaries, each compiled against a different version of the support library to satisfy any given consumer setup?
...ANSWER
Answered 2017-Oct-31 at 11:00Is there any way to avoid this by configuring the library different, or should this be the result?
Unfortunately, this the expected result. The reason of this issue is that JVM
doesn't allow to have more than once class with the same package and name.
Am I wrong in assuming that different versions of the appcompat lib should be allowed in the library and in the consuming app?
As I said, this is a JVM
restriction.
Should I instead publish multiple binaries, each compiled against a different version of the support library to satisfy any given consumer setup?
This is the only solution that you have, even do it's very painful.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-maven-publish
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page