diff --git a/Puppetfile b/Puppetfile
index ccd3a12e0521603ce7468460a71d435548ac5102..b67f965e3fecadd06bc6391b30b84efe58cf5d7e 100644
--- a/Puppetfile
+++ b/Puppetfile
@@ -93,7 +93,7 @@ mod 'inifile',
 
 mod 'java',
     :git => 'https://forge.softwareheritage.org/source/puppet-puppetlabs-java',
-    :tag => '2.4.0'
+    :tag => 'v5.0.1'
 
 mod 'kafka',
     :git => 'https://forge.softwareheritage.org/source/puppet-puppet-kafka',