Resolve Publishing to Maven Central and Documentation Deployment Issues #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses the encountered errors while publishing the project to Maven Central and deploying the documentation. The specific issues tackled include:
Missing License in POM: The project's POM file lacked a license declaration, which is mandatory for Maven Central publication. A valid license declaration has been added to comply with Maven Central's guidelines.
Incomplete POM License Declaration: The initial license declaration in the POM file was incomplete, missing the license URL. The license declaration has been updated to include the complete license name and URL.
Erroneous Documentation Deployment Path: The documentation deployment process was using an incorrect path, leading to deployment failures. The deployment path has been corrected to ensure proper documentation placement.
Missing Gradle Properties for Maven Central Credentials: The Gradle properties file lacked the required credentials (
mavenCentralUsername
andmavenCentralPassword
) for accessing Maven Central. These credentials have been added to the properties file to enable artifact publication.Unused
pom
Closure: Thepom
closure within themavenPublishing
block was not being invoked for the Android library, preventing POM configuration. ThemavenPublishing
block has been updated to use theandroid-maven-publish
plugin instead, which properly handles POM configuration for Android libraries.