Package org.kordamp.maven.checker
Class MavenCentralChecker.Configuration
- java.lang.Object
-
- org.kordamp.maven.checker.MavenCentralChecker.Configuration
-
- Enclosing class:
- MavenCentralChecker
public static class MavenCentralChecker.Configuration extends Object
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFailOnError()
boolean
isFailOnWarning()
boolean
isRelease()
boolean
isStrict()
MavenCentralChecker.Configuration
withFailOnError(boolean failOnError)
Sets the value forfailOnError
.MavenCentralChecker.Configuration
withFailOnWarning(boolean failOnWarning)
Sets the value forfailOnWarning
.MavenCentralChecker.Configuration
withRelease(boolean release)
Sets the value forrelease
.MavenCentralChecker.Configuration
withStrict(boolean strict)
Sets the value forstrict
.
-
-
-
Constructor Detail
-
Configuration
public Configuration()
-
-
Method Detail
-
isRelease
public boolean isRelease()
-
withRelease
public MavenCentralChecker.Configuration withRelease(boolean release)
Sets the value forrelease
.- Parameters:
release
- iftrue
checks if version is not -SNAPSHOT.
-
isStrict
public boolean isStrict()
-
withStrict
public MavenCentralChecker.Configuration withStrict(boolean strict)
Sets the value forstrict
.- Parameters:
strict
- iftrue
checks that <repositories> and <pluginRepositories> are not present
-
isFailOnError
public boolean isFailOnError()
-
withFailOnError
public MavenCentralChecker.Configuration withFailOnError(boolean failOnError)
Sets the value forfailOnError
.- Parameters:
failOnError
- iftrue
fails the build when an error is encountered.
-
isFailOnWarning
public boolean isFailOnWarning()
-
withFailOnWarning
public MavenCentralChecker.Configuration withFailOnWarning(boolean failOnWarning)
Sets the value forfailOnWarning
.- Parameters:
failOnWarning
- iftrue
fails the build when a warning is encountered.
-
-