Compare commits
3 commits
6f62c38a9b
...
c26f531329
Author | SHA1 | Date | |
---|---|---|---|
c26f531329 | |||
1227115805 | |||
4adc28d4a5 |
4 changed files with 17 additions and 10 deletions
1
.idea/misc.xml
generated
1
.idea/misc.xml
generated
|
@ -4,6 +4,7 @@
|
||||||
<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">
|
||||||
|
|
|
@ -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.2
|
bld.extension-pitest=com.uwyn.rife2:bld-pitest:1.0.3
|
||||||
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
|
||||||
|
|
|
@ -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, 0)))
|
.include(dependency("org.pitest", "pitest", version(1, 17, 1)))
|
||||||
.include(dependency("org.pitest", "pitest-command-line", version(1, 17, 0)))
|
.include(dependency("org.pitest", "pitest-command-line", version(1, 17, 1)))
|
||||||
.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)));
|
||||||
|
|
|
@ -30,10 +30,15 @@ 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, 2);
|
version = version(1, 0, 3);
|
||||||
|
|
||||||
javaRelease = 17;
|
javaRelease = 17;
|
||||||
|
|
||||||
|
@ -42,7 +47,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, 0);
|
var pitest = version(1, 17, 1);
|
||||||
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)
|
||||||
|
@ -93,11 +98,12 @@ 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 {
|
||||||
new PmdOperation()
|
pmdOp.execute();
|
||||||
.fromProject(this)
|
}
|
||||||
.failOnViolation(true)
|
|
||||||
.ruleSets("config/pmd.xml")
|
@BuildCommand(value = "pmd-cli", summary = "Runs PMD analysis (CLI)")
|
||||||
.execute();
|
public void pmdCli() throws Exception {
|
||||||
|
pmdOp.includeLineNumber(false).execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue