Add a manual publishing option to build
For the SNAPSHOT versions, we want to be able to publish a fix quickly. For this, we want to enable manual publishing with a proper API key.
The gitlab CI script is adjusted to use a new Gradle task to get the current version of the project and get the JAR from that.