Compare commits

..

No commits in common. "c26f5313296dbc5f9e152e2dca9a26edddf57ca3" and "6f62c38a9b0d1a9eadb81107ead92217c876b1ec" have entirely different histories.

4 changed files with 10 additions and 17 deletions

1
.idea/misc.xml generated
View file

@ -4,7 +4,6 @@
<pattern value="rife.bld.extension.PitestOperationBuild" method="jacoco" /> <pattern value="rife.bld.extension.PitestOperationBuild" method="jacoco" />
<pattern value="rife.bld.extension.PitestOperationBuild" /> <pattern value="rife.bld.extension.PitestOperationBuild" />
<pattern value="rife.bld.extension.PitestOperationBuild" method="pmd" /> <pattern value="rife.bld.extension.PitestOperationBuild" method="pmd" />
<pattern value="rife.bld.extension.PitestOperationBuild" method="pmdCli" />
</component> </component>
<component name="PDMPlugin"> <component name="PDMPlugin">
<option name="customRuleSets"> <option name="customRuleSets">

View file

@ -1,7 +1,7 @@
bld.downloadExtensionJavadoc=false bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true bld.downloadExtensionSources=true
bld.downloadLocation= bld.downloadLocation=
bld.extension-pitest=com.uwyn.rife2:bld-pitest:1.0.3 bld.extension-pitest=com.uwyn.rife2:bld-pitest:1.0.2
bld.repositories=MAVEN_CENTRAL,RIFE2_RELEASES,MAVEN_LOCAL,RIFE2_SNAPSHOTS bld.repositories=MAVEN_CENTRAL,RIFE2_RELEASES,MAVEN_LOCAL,RIFE2_SNAPSHOTS
bld.sourceDirectories= bld.sourceDirectories=
bld.version=2.1.0 bld.version=2.1.0

View file

@ -27,8 +27,8 @@ public class ExamplesBuild extends Project {
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES); repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
scope(test) scope(test)
.include(dependency("org.pitest", "pitest", version(1, 17, 1))) .include(dependency("org.pitest", "pitest", version(1, 17, 0)))
.include(dependency("org.pitest", "pitest-command-line", version(1, 17, 1))) .include(dependency("org.pitest", "pitest-command-line", version(1, 17, 0)))
.include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 1))) .include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 1)))
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 3))) .include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 3)))
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 3))); .include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 3)));

View file

@ -30,15 +30,10 @@ import static rife.bld.dependencies.Scope.test;
import static rife.bld.operations.JavadocOptions.DocLinkOption.NO_MISSING; import static rife.bld.operations.JavadocOptions.DocLinkOption.NO_MISSING;
public class PitestOperationBuild extends Project { public class PitestOperationBuild extends Project {
final PmdOperation pmdOp = new PmdOperation()
.fromProject(this)
.failOnViolation(true)
.ruleSets("config/pmd.xml");
public PitestOperationBuild() { public PitestOperationBuild() {
pkg = "rife.bld.extension"; pkg = "rife.bld.extension";
name = "PitestExtension"; name = "PitestExtension";
version = version(1, 0, 3); version = version(1, 0, 2);
javaRelease = 17; javaRelease = 17;
@ -47,7 +42,7 @@ public class PitestOperationBuild extends Project {
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, RIFE2_RELEASES, RIFE2_SNAPSHOTS); repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, RIFE2_RELEASES, RIFE2_SNAPSHOTS);
var pitest = version(1, 17, 1); var pitest = version(1, 17, 0);
scope(compile) scope(compile)
.include(dependency("com.uwyn.rife2", "bld", version(2, 1, 0))); .include(dependency("com.uwyn.rife2", "bld", version(2, 1, 0)));
scope(test) scope(test)
@ -98,12 +93,11 @@ public class PitestOperationBuild extends Project {
@BuildCommand(summary = "Runs PMD analysis") @BuildCommand(summary = "Runs PMD analysis")
public void pmd() throws Exception { public void pmd() throws Exception {
pmdOp.execute(); new PmdOperation()
} .fromProject(this)
.failOnViolation(true)
@BuildCommand(value = "pmd-cli", summary = "Runs PMD analysis (CLI)") .ruleSets("config/pmd.xml")
public void pmdCli() throws Exception { .execute();
pmdOp.includeLineNumber(false).execute();
} }
@Override @Override