<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Christoph Frick - ofnir.net - Open Source Consultant, Software Developer and System Administrator (Posts about java-validation)</title><link>https://ofnir.net/</link><description></description><atom:link href="https://ofnir.net/categories/java-validation.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:cf@ofnir.net"&gt;Christoph Frick - ofnir.net&lt;/a&gt; </copyright><lastBuildDate>Tue, 21 Apr 2026 11:44:46 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Excluding deps in configurations, added by plugin, in gradle</title><link>https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;The gradle-vaadin-plugin adds its configurations, that later get used to
gather the deps for the client compile run, when it runs.  So one can not
safely create configs and exclude deps there beforehand.  But gradle let's you
do even this at a later time.  This fragment gets rid of &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;springboot-starter-web&lt;/span&gt;&lt;/code&gt;, as
this pulls in java-validation 1.1, which won't compile the client due to GWT
restrictions.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code groovy"&gt;&lt;a id="rest_code_436c079e57b945dcb7e9e64c38f3c863-1" name="rest_code_436c079e57b945dcb7e9e64c38f3c863-1" href="https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/#rest_code_436c079e57b945dcb7e9e64c38f3c863-1"&gt;&lt;/a&gt;&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;afterEvaluate&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;a id="rest_code_436c079e57b945dcb7e9e64c38f3c863-2" name="rest_code_436c079e57b945dcb7e9e64c38f3c863-2" href="https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/#rest_code_436c079e57b945dcb7e9e64c38f3c863-2"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;configurations&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="s1"&gt;'vaadin-client'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;a id="rest_code_436c079e57b945dcb7e9e64c38f3c863-3" name="rest_code_436c079e57b945dcb7e9e64c38f3c863-3" href="https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/#rest_code_436c079e57b945dcb7e9e64c38f3c863-3"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;exclude&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;module:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'spring-boot-starter-web'&lt;/span&gt;
&lt;a id="rest_code_436c079e57b945dcb7e9e64c38f3c863-4" name="rest_code_436c079e57b945dcb7e9e64c38f3c863-4" href="https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/#rest_code_436c079e57b945dcb7e9e64c38f3c863-4"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;a id="rest_code_436c079e57b945dcb7e9e64c38f3c863-5" name="rest_code_436c079e57b945dcb7e9e64c38f3c863-5" href="https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/#rest_code_436c079e57b945dcb7e9e64c38f3c863-5"&gt;&lt;/a&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;See my &lt;a class="reference external" href="https://github.com/christoph-frick/springboot-groovy-vaadin-starter"&gt;springboot-groovy-vaadin-starter&lt;/a&gt;&lt;/p&gt;</description><category>Gradle</category><category>gradle-vaadin-plugin</category><category>java-validation</category><category>Springboot</category><category>Vaadin</category><guid>https://ofnir.net/posts/excluding-deps-in-configurations-added-by-plugin-in-gradle/</guid><pubDate>Thu, 20 Nov 2014 23:00:00 GMT</pubDate></item></channel></rss>