Skip to content

Commit 7a8ccd8

Browse files
committed
Version 1.4.0
1 parent ab097de commit 7a8ccd8

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

.idea/misc.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/bld/bld-wrapper.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ bld.downloadExtensionJavadoc=false
22
bld.downloadExtensionSources=true
33
bld.downloadLocation=
44
bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.5
5-
bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.3.4
65
bld.extension-reporter=com.uwyn.rife2:bld-junit-reporter:0.9.1
76
bld.extension-spotbugs=com.uwyn.rife2:bld-spotbugs:0.9.0-SNAPSHOT
87
bld.repositories=MAVEN_LOCAL,RIFE2_RELEASES,MAVEN_CENTRAL,RIFE2_SNAPSHOTS

src/bld/java/rife/bld/extension/PmdOperationBuild.java

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,10 @@
3030
import static rife.bld.operations.JavadocOptions.DocLinkOption.NO_MISSING;
3131

3232
public 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

Comments
 (0)