#publish a lib
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
To publish your library for others to import into their projects using Maven or Gradle, you will need to follow these steps:
-
Hosting: You can host your library on a public repository like Maven Central, JCenter, or your own repository server.
-
Build system configuration: For Maven, you will need to configure the pom.xml file with your library's metadata and dependencies. For Gradle, you will need to configure the build.gradle file with similar information.
-
Versioning: Make sure to assign a version number to your library according to semantic versioning principles.
-
Packaging: Package your library in a format that can be easily imported by other projects, such as a JAR file.
-
Documentation: Provide clear documentation on how to import and use your library in projects.
-
Publish: Once everything is set up, you can publish your library by running the appropriate command for the repository you are using (e.g., mvn deploy for Maven Central).
By following these steps, you can make it easy for other developers to import and use your library in their Java projects with Maven or Gradle.
first of all it needs to be a maven/gradle module itself
with a proper pom.xml / gradle.build file
after that u have to upload it somewhere
if u have it on github releases, people can easily get hands on it using jitpack.io
if u want them to be able to get hands on it with the default settings u need to upload it to maven-central
which is a bit cumbersome
it also requires ownership verification, but thats usually simple and just takes a day or two
what do you mean in "module"?
They have integration now with github auth to automatically validate and give a github.io domain/repository. As for custom domains i think mine was nearly instant, possibly 10 minutes or something. U just have to update a DNS entry and click the button saying "yeah go check it"
share the library here? just curious
like posted here #1273626833275060295 I didnt manage to post it with git 🥲 its a menu library for spigot mc I'll mention it if I can, if you want
ah
so small thing
generally, if possible, deploy libraries in a place where all their dependencies are available
so if its a minecraft thing maven central may/may not be appropriate
since spigot isn't on maven central
yes, that's why I think I'll just put it on github with a packaage, but I'd have to post it already...