Im having some trouble finding an easy way to publish a lib for others to use in enonic XP.
I have a project which is just a .js file in /lib where I have made some functions for API calls to a videoplatform and format the response. Now i want it to be easy for other users of that videoplatform to include a maven repo and resolve my lib so they can use the funcions in their projects.
Currently im trying out bintray, but without luck. Im just doing something wrong. What im having trouble with is finding my repoās files. I can see gradle trying different URLs, but it seems my files are not there. And there is no easy way in bintray to see the exact path your files are in.
Anyone else here that have published a Lib to either bintray or somewhere else public that has had any success?
You can also include the package in JCenter, and thus sync it to Maven Central (so you can use the usual repos), but then you need to include a pom file and actively include it in JCenter from your package page in Bintray. (I havenāt tried this, but itās how I understand it from the documentation.) You may also have luck with using the āInclude My Packageā from this page, but I donāt really know how that works.
Thanks! I will look into this @rbrastad . I uploaded the files manually, and maybe somehting is wrong with the pom. Ill reply here again if i have any questions!
Quick update. Following @rbrastad guide(Thank you very much!), I was sucessfull to upload my lib to bintray, which was my problem all along⦠I tried to upload manually, and thats why I could not compile from it.
Along the way, I got an error with the version of the bintray app you used(ācom.jfrog.bintray.gradle:gradle-bintray-plugin:1.6ā): date() not serving a parsable date. I found the newest version number from bintray and was sucessfull