I want to publish some sources so that consumers of our closed-source library can see the documentation in their IDEs. I have this working so far:
def listOfPublicApiFiles = [
'/com/example/app/MyClass.java',
…
Java 11 and Gradle 7.2 here. I am trying to build a reusable library that I can (eventually) publish to a Maven repository and pull into other projects. But first I just want to get it publishing to my local m2 repo.
The project directory structure…
I was adapting a Gradle project from version 5.3 to version 7.3.3. Therefore the maven plugin had to be replaced with the maven-publish plugin.
Before, it was possible to skip long running tasks when deploying to the local .m2 repository/folder. All…
Yesterday I upgraded Android Studio to Arctic Fox, which moves from Gradle 6 to 7.
Gradle 7 removes the 'maven' plugin, which my team had been using to package an Android Library we had into an AAR file as part of an automated/CI build.
Previously…
UPDATE2: I was not generating a aar file, now it's included in the package that you can check here: https://github.com/fabrizioiacobucci/range-bar-preference/packages/787218
I see javadoc, sources and aar are there, but when I add the package as…
I published a package to gcloud artifact registry (gradle/maven-publish). I use this as a dependency in two projects (maven and gradle). The dependency is resolved by maven but gradle shows.
Could not resolve com.company.group:art:1.0-SNAPSHOT
Also,…
Could not PUT 'https://xxx.jar'. Received status code 401 from server: Unauthorized:
maven {
name = "${infos.publish.snapshotId}"
url = infos.publish.urls.snapshot
credentials {
username =…
I want to publish my maven artifacts to standard maven repositories. For that the first example I chose is Bintray by JFrog. Unfortunately this didn’t go well; I had to add two hacks:
Remove existing artifacts if pushing same version again
Delete…
I'm trying to follow https://developer.android.com/studio/build/maven-publish-plugin to publish library (aar) module and application (apk) module to Maven repository (maven-publish plugin). I'm using Kotlin Gradle kts instead of Grovy.
Sample…
I'm trying to deploy my java project to Bintray. The version being built itself uploads fine but in the package main folder - there is no checksum file for maven-metadata.xml (maven-metadata.xml.md5, maven-metadata.xml.sh1 or any other). I cannot…
i'm new in gradle and want to create custom gradle plugin that applies maven-publish plugin. Also my plugin should configure maven-publish plugin so that another plugin user should do nothing. And my plugin will automaticly configure maven-publish.…
I need to integrate an internal library with two apps. The problem is that those apps use different versions of Dagger 2 which are incompatible and I can't remove Dagger from the library fast. Is there a way to include Dagger generated classes in…
Following this guide:
https://help.github.com/en/articles/configuring-gradle-for-use-with-github-package-registry
But when I apply the gradle's maven-publish to the submodules, I get the following error:
Could not find method publications() for…