3030import static rife .bld .operations .JavadocOptions .DocLinkOption .NO_MISSING ;
3131
3232public class PmdOperationBuild extends Project {
33- final PmdOperation pmdOp = new PmdOperation ()
34- .fromProject (this )
35- .excludes (srcTestResourcesDirectory ().toPath ())
36- .failOnViolation (true )
37- .ruleSets ("config/pmd.xml" );
38-
3933 public PmdOperationBuild () {
4034 pkg = "rife.bld.extension" ;
4135 name = "bld-pmd" ;
42- version = version (1 , 3 , 5 , "SNAPSHOT" );
36+ version = version (1 , 4 , 0 );
4337
4438 javaRelease = 17 ;
4539
@@ -58,7 +52,8 @@ public PmdOperationBuild() {
5852 .include (dependency ("com.github.spotbugs" , "spotbugs-annotations" ,
5953 version (4 , 9 , 8 )));
6054 scope (runtime )
61- .include (dependency ("org.slf4j" , "slf4j-simple" ,
55+ .include (dependency (
56+ "org.slf4j" , "slf4j-simple" ,
6257 version (2 , 0 , 17 )));
6358 scope (test )
6459 .include (dependency ("com.uwyn.rife2" , "bld-extensions-testing-helpers" ,
@@ -115,16 +110,6 @@ public static void main(String[] args) {
115110 new PmdOperationBuild ().start (args );
116111 }
117112
118- @ BuildCommand (summary = "Runs PMD analysis" )
119- public void pmd () throws Exception {
120- pmdOp .execute ();
121- }
122-
123- @ BuildCommand (value = "pmd-cli" , summary = "Runs PMD analysis (CLI)" )
124- public void pmdCli () throws Exception {
125- pmdOp .includeLineNumber (false ).execute ();
126- }
127-
128113 @ BuildCommand (summary = "Runs the JUnit reporter" )
129114 public void reporter () throws Exception {
130115 new JUnitReporterOperation ()
@@ -138,7 +123,6 @@ public void spotbugs() throws Exception {
138123 new SpotBugsOperation ()
139124 .fromProject (this )
140125 .home ("/opt/spotbugs" )
141- .sourcePath (new File (srcMainDirectory (), "kotlin" ))
142126 .execute ();
143127 }
144128}
0 commit comments