Class CheckSnakeYaml

java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
io.micronaut.maven.enforcer.CheckSnakeYaml
All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRuleBase

@Named("checkSnakeYaml") public class CheckSnakeYaml extends org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
Enforcer rule to check that, when the application has YAML configuration, the SnakeYAML library is present.
Since:
4.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Summary

    Constructors
    Constructor
    Description
    CheckSnakeYaml(org.apache.maven.project.MavenProject project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.maven.enforcer.rule.api.EnforcerLogger
     
    void
    setLog(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
     
     

    Methods inherited from class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule

    getCacheId, getLevel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CheckSnakeYaml

      @Inject public CheckSnakeYaml(org.apache.maven.project.MavenProject project)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
      Specified by:
      execute in class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
      Throws:
      org.apache.maven.enforcer.rule.api.EnforcerRuleException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setLog

      public void setLog(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
      Specified by:
      setLog in interface org.apache.maven.enforcer.rule.api.EnforcerRuleBase
    • getLog

      public org.apache.maven.enforcer.rule.api.EnforcerLogger getLog()