I recently had to work on GPG encryption-decryption and did find BountyCastle's PGP library does the trick. The steps were
1) Add the version in pom.xml properties
1.46
2) Add the following dependencies
org.bouncycastle
bcmail-jdk15
${org.bouncycastle.version}
org.bouncycastle
bcpg-jdk15
${org.bouncycastle.version}
org.bouncycastle
bcprov-jdk15
${org.bouncycastle.version}
3) In the implementation class added the provider with Java Security
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
4) The rest of the code was just simple Java implementation
File encryptedFile = new File(encryptedFileName);
byte[] encryptedByteArray = FileUtils.readFileToByteArray(inputFile);
byte[] decryptedByteArray = ByteArrayHandler.decrypt(encryptedByteArray, passPhrase.toCharArray());
String decryptedString = new String(decryptedByteArray);
I hope this helps.