deepmedia / MavenDeployer

Release libraries to Maven Central (Nexus/OSSRH or Central Portal), GitHub Packages and local directories with a unified Gradle DSL. Includes automatic releases using Sonatype APIs.
https://opensource.deepmedia.io/deployer
73 stars 6 forks source link

There is a problem in the build.gradle of Groovy syntax #11

Closed javakam closed 2 years ago

javakam commented 3 years ago

In My build.gradle :

sonatype("") {
    auth.user = "xxx"
    auth.password = "xxx"
}

caused :

A problem occurred evaluating project ':library'.
> No such property: user for class: io.deepmedia.tools.publisher.common.Auth
natario1 commented 3 years ago

The auth object is an instance of io.deepmedia.tools.publisher.sonatype.SonatypeAuth, a subclass of io.deepmedia.tools.publisher.common.Auth. I'm not confident with groovy so I'm not sure what's the issue here. If you find a solution feel free to post here or open a PR.

javakam commented 3 years ago

Thank you for your reply, I found another suitable solution 👉 https://proandroiddev.com/publishing-your-first-android-library-to-mavencentral-be2c51330b88