diff --git a/animal-sniffer-enforcer-rule/src/main/java/org/codehaus/mojo/animal_sniffer/enforcer/CheckSignatureRule.java b/animal-sniffer-enforcer-rule/src/main/java/org/codehaus/mojo/animal_sniffer/enforcer/CheckSignatureRule.java index e148c0a4..3b031b6e 100644 --- a/animal-sniffer-enforcer-rule/src/main/java/org/codehaus/mojo/animal_sniffer/enforcer/CheckSignatureRule.java +++ b/animal-sniffer-enforcer-rule/src/main/java/org/codehaus/mojo/animal_sniffer/enforcer/CheckSignatureRule.java @@ -134,10 +134,10 @@ public class CheckSignatureRule /** * Should test classes be checked. * - * //parameter default-value="true" + * //parameter default-value="false" * @since 1.19 */ - private boolean checkTestClasses = true; + private boolean checkTestClasses = false; public void execute( EnforcerRuleHelper helper ) throws EnforcerRuleException diff --git a/animal-sniffer-maven-plugin/src/it/github-5-test-classes/invoker.properties b/animal-sniffer-maven-plugin/src/it/github-5-test-classes/invoker.properties index 1c2b2875..6055e202 100644 --- a/animal-sniffer-maven-plugin/src/it/github-5-test-classes/invoker.properties +++ b/animal-sniffer-maven-plugin/src/it/github-5-test-classes/invoker.properties @@ -21,7 +21,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # -invoker.goals.1=verify -Danimal.sniffer.checkTestClasses=false +invoker.goals.1=verify -invoker.goals.2=verify +invoker.goals.2=verify -Danimal.sniffer.checkTestClasses=true invoker.buildResult.2=failure \ No newline at end of file diff --git a/animal-sniffer-maven-plugin/src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java b/animal-sniffer-maven-plugin/src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java index 15b665fc..47661b0b 100644 --- a/animal-sniffer-maven-plugin/src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java +++ b/animal-sniffer-maven-plugin/src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java @@ -86,7 +86,7 @@ public class CheckSignatureMojo * * @since 1.19 */ - @Parameter( property = "animal.sniffer.checkTestClasses", defaultValue = "true" ) + @Parameter( property = "animal.sniffer.checkTestClasses", defaultValue = "false" ) protected boolean checkTestClasses; /**