diff --git a/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml b/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml
index 35f9beb6a..3dd847378 100644
--- a/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml
+++ b/scripts/generator/templates/template-vaadin-platform-javadoc-pom.xml
@@ -129,6 +129,11 @@
org.springframework.security
spring-security-oauth2-jose
provided
+
+
+ org.springframework.security
+ spring-security-oauth2-client
+ provided
org.springframework.security