deepmedia / deepmedia/MavenDeployer

Unable to deploy android library

Open
#35 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
89
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I'm trying to configure publishing for my Android library, and here's what my current setup looks like:

```
android {
publishing {
singleVariant("release")
}
}
```

```
deployer {
content {
androidComponents("release") {
kotlinSources()
emptyDocs()
}
}
projectInfo {
artifactId = appName
description = "**"
url = "https://gitlab.com/someurl"
scm.fromGitlab("username", "projectname")
license("license")
developer("", "", "", "")
}
centralPortalSpec(appName) {
auth.user = secret("SONATYPE_USERNAME")
auth.password = secret("SONATYPE_PASSWORD")
allowMavenCentralSync = false
}

signing {
key = secret("SIGNING_KEY")
password = secret("SIGNING_PASSWORD")
}
}
```
However, I'm getting the following error during the build:

```
* What went wrong:
A problem was found with the configuration of task ':MyLibrary:preDeployCentralPortalMyLibrary' (type 'CentralPortalInitializationTask').
- In plugin 'io.deepmedia.tools.deployer' type 'io.deepmedia.tools.deployer.specs.CentralPortalInitializationTask' property 'service' doesn't have a configured value.

Reason: This property isn't marked as optional and no value has been configured.

Possible solutions:
1. Assign a value to 'service'.
2. Mark property 'service' as optional.

For more information, please refer to https://docs.gradle.org/8.9/userguide/validation_problems.html#value_not_set in the Gradle documentation.
```

I'm pretty sure I'm just missing a small configuration detail here. This exact setup works fine for KMP Android deployment, but fails when used in a pure Android library module.

Any ideas on what I might be missing?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.