Skip to content

Commit c34b637

Browse files
committed
adding victi.ms and direct-dependency enforcer rules
1 parent 034be06 commit c34b637

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

pom.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@
173173
<artifactId>enforce-managed-deps-rule</artifactId>
174174
<version>1.0</version>
175175
</dependency>
176+
<dependency>
177+
<groupId>de.is24.maven.enforcer.rules</groupId>
178+
<artifactId>illegal-transitive-dependency-check</artifactId>
179+
<version>1.7.4</version>
180+
</dependency>
181+
<dependency>
182+
<groupId>com.redhat.victims</groupId>
183+
<artifactId>enforce-victims-rule</artifactId>
184+
<version>1.3.4</version>
185+
</dependency>
176186
</dependencies>
177187
<executions>
178188
<execution>
@@ -198,6 +208,52 @@
198208
<banSnapshots />
199209
<unCheckedPluginList>org.eclipse.m2e:lifecycle-mapping</unCheckedPluginList>
200210
</requirePluginVersions>
211+
<illegalTransitiveDependencyCheck implementation="de.is24.maven.enforcer.rules.IllegalTransitiveDependencyCheck">
212+
<reportOnly>false</reportOnly>
213+
<regexIgnoredClasses>
214+
<regexIgnoredClass>com\.sun\.net\.httpserver\..+</regexIgnoredClass>
215+
<regexIgnoredClass>javax\..+</regexIgnoredClass>
216+
<regexIgnoredClass>org\.w3c\.dom\..+</regexIgnoredClass>
217+
<regexIgnoredClass>org\.xml\.sax\..+</regexIgnoredClass>
218+
</regexIgnoredClasses>
219+
<useClassesFromLastBuild>true</useClassesFromLastBuild>
220+
</illegalTransitiveDependencyCheck>
221+
<victimsCheck implementation="com.redhat.victims.VictimsRule">
222+
<!--
223+
Check the project's dependencies against the database using
224+
name and version. The default mode for this is 'warning'.
225+
226+
Valid options are:
227+
228+
disabled: Rule is still run but only INFO level messages aand no errors.
229+
warning : Rule will spit out a warning message but doesn't result in a failure.
230+
fatal : Rule will spit out an error message and fail the build.
231+
-->
232+
<metadata>warning</metadata>
233+
<!--
234+
Check the project's dependencies against the database using
235+
the SHA-512 checksum of the artifact. The default is fatal.
236+
237+
Valid options are:
238+
239+
disabled: Rule is still run but only INFO level messages aand no errors.
240+
warning : Rule will spit out a warning message but doesn't result in a failure.
241+
fatal : Rule will spit out an error message and fail the build.
242+
-->
243+
<fingerprint>fatal</fingerprint>
244+
<!--
245+
Disables the synchronization mechansim. By default the rule will
246+
attempt to update the database for each build.
247+
248+
Valid options are:
249+
250+
auto : Automatically update the database entries on each build.
251+
daily : Update the database entries once per day.
252+
weekly: Update the database entries once per week.
253+
offline : Disable the synchronization mechanism.
254+
-->
255+
<updates>auto</updates>
256+
</victimsCheck>
201257
</rules>
202258
</configuration>
203259
</execution>

0 commit comments

Comments
 (0)