Publish Gradle Project to Maven Central via CI

We’ve recently completed automated push of Reliza Java Client (SDK) to Maven Central. It’s a Gradle project, so just want to note few things that took more time during this setup. First, we’re using newer maven-publish plugin. Then note publishing and signing sections in our build.gradle. Next, our actual build job is here. Note, that… Continue reading Publish Gradle Project to Maven Central via CI

Storing Arbitrary Values in Java Keystore

Java Keystore is a nice tool, but it has a very limited number of inputs it supports natively. Mainly those are pem certificates and corresponding keys. Fortunately, there is a way to store arbitrary data using keytool’s -importpass command and base64 encoding. Here is how to achieve that. Let’s imagine we have some secret.bin file,… Continue reading Storing Arbitrary Values in Java Keystore

Resources for promoting to Maven Central

Reminder for myself: this is a very good write up how to promote – https://dzone.com/articles/publish-your-artifacts-to-maven-central Official guide – https://central.sonatype.org/pages/releasing-the-deployment.html Requirements (very important) – https://central.sonatype.org/pages/releasing-the-deployment.html Notes for the DZone article – no need to keep gpg password in plaintext, it will prompt. However, for sonatype password it doesn’t prompt so for now my solution is to add and then… Continue reading Resources for promoting to Maven Central

Some trouble with JUnit 5 and solution

Yesterday had a pretty weird issue with Junit 5 which didn’t compile. Spent half a day trying to tweak pom file, specify specific directory and making sure I have proper scope and such. Funniest thing tests were working from eclipse, but from CLI both tests and package compilation fails. Turns out Eclipse was using incorrect… Continue reading Some trouble with JUnit 5 and solution