buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'org.kordamp.gradle:pomchecker-gradle-plugin:1.11.0'
}
}
apply plugin: 'org.kordamp.gradle.pomchecker'
PomChecker Gradle Plugin
The PomChecker Gradle plugin provides goals to check the contents of a POM file.
Its tasks will be run after their corresponding generateMavenPom<PublicationName>publication
task runs.
Install
plugins {
id 'org.kordamp.gradle.pomchecker' version '1.11.0'
}
DSL
pomchecker {
enabled
bom
release
strict
failOnError
failOnWarning
}
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
enabled |
boolean |
no |
true |
If |
bom |
boolean |
no |
false |
If |
release |
boolean |
no |
true |
Disallows |
strict |
boolean |
no |
true |
Disallows |
failOnError |
boolean |
no |
true |
Fails the build on error. |
failOnWarning |
boolean |
no |
false |
Fails the build on warning. |
Tasks
CheckBom
- Name
-
checkBom<PublicationName>
- Type
-
org.kordamp.gradle.plugin.checker.tasks.CheckBomTask
Checks that a POM is a minimal BOM.
Minimal BOM files contain the following elements:
-
<groupId>
-
<artifactId>
-
<version>
-
<dependencyManagement>