Skip to content
Vlad Mihalcea edited this page Jan 22, 2018 · 4 revisions

1. Setting up the environment

FlexyPool is meant for enterprise systems and so it must be compiled and built against the lowest Java version currently in use. Until all systems upgrade to Java 1.9, we must use Java 1.8 for building the most part of FlexyPool.

To build the project you need to define the following environment variables:

SET JAVA_HOME_8=C:\Program Files\Java\jdk1.8.0
SET JAVA_HOME_9=C:\Program Files\Java\jdk1.9.0
  • By default, the JAVA_HOME_8 will be used for most Maven modules.

  • JAVA_HOME_9 is used for flexy-test-hikaricp-java9.

2. Building the project

After setting these environment variables you can build the project with Maven

mvn clean install

3. Releasing the project

After a milestone is ready for being released the following scripts should be executed:

release-prepare.bat ${gpg-passphrase}

The ${gpg-passphrase} is mandatory and it’s used to sign the Maven artifacts. This command will create a release branch and a tag and will bump versions up to the next development iteration.

To upload the built artifact to Maven Central you need to execute the following command:

release-perform.bat ${gpg-passphrase}

The ${gpg-passphrase} is again mandatory and it’s used to verify the author is who he claims he is. This will upload the artifacts to Maven Central.

After the artifacts are uploaded to Maven Central, you need to log into OSS and close and release the uploaded Artefacts.