-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open up SonatypeHost #504
Open up SonatypeHost #504
Conversation
Testing failed
|
Now working at least to the point of a 403.
|
plugin/src/main/kotlin/com/vanniktech/maven/publish/SonatypeHost.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also need an overload like this in MavenPublishBaseExtension
:
@JvmOverloads
fun publishToMavenCentral(host: String = "DEFAULT" automaticRelease: Boolean = false)
Groovy (or maybe just Gradle) has something that allows passing an enum value as string to a function.
I'm not confident about this part of the change. Won't the overload conflict when no params are provided? Like |
Feel free to takeover this PR, or suggest further changes. |
plugin/src/main/kotlin/com/vanniktech/maven/publish/MavenPublishBaseExtension.kt
Outdated
Show resolved
Hide resolved
Looks like there is a ktlint issue, can you run
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I can create a new release with this soon, but we're also blocked by the Sonatype issues 😬
Relates to https://issues.sonatype.org/browse/OSSRH-88192
Make SonatypeHost a value class instead of an enum.
fixes #503