Join Slack
Powered by
anyone got a small scale project featuring maven-p...
# gradle
l
LastExceed
07/01/2020, 11:32 AM
anyone got a small scale project featuring maven-publish that i can look at as an example on how to publish to MavenCentral ? the documentation is overwhelming me
g
gildor
07/01/2020, 11:59 PM
Publishing itself is very simple with new maven-publish, just specify repository and create MavenPublish component:
https://docs.gradle.org/current/userguide/publishing_setup.html#sec:basic_publishing
gildor
07/02/2020, 12:00 AM
For maven central you should also specify username and password for repository
gildor
07/02/2020, 12:02 AM
Also for maven central you should publish javadoc, you can enable it with new gradle API for that: java { withJavadocJar() withSourcesJar() }
3
Views
Open in Slack
Previous
Next