Hi everyone! I've recently built a small <socket.i...
# announcements
p
Hi everyone! I've recently built a small socket.io client library using ktor (https://github.com/pschichtel/Kognigy). I'm currently trying to deploy it to maven central. I've setup tasks for the sources jar and javadocs jar (based on dokka). when I publish using the
io.github.gradle-nexus.publish-plugin
plugin and
from(components["java"])
in the publication, then everything gets uploaded except the actual code jar: https://oss.sonatype.org/#nexus-search;quick~kognigy. This happens both with gradle 6.8 and 7.1. Am I missing something?
t
I haven't used
io.github.gradle-nexus.publish-plugin
, but if you can't figure it out with that plugin, I've had really good luck with https://github.com/vanniktech/gradle-maven-publish-plugin.
With the Vanniktech plugin, you can use a command like:
Copy code
./gradlew -PVERSION_NAME=1.0.0-SNAPSHOT publishToMavenLocal
...to test the publication and make sure it is producing all the expected artifacts/files by browsing your
~/.m2
folder.