Commits

Samuel Le Berrigaud committed 07854d7

- Added support for skipping the validation
- Don't take in account md5 for SNAPSHOTs

  • Participants
  • Parent commits b50cd1c

Comments (0)

Files changed (3)

src/main/groovy/com/atlassian/maven/plugins/AbstractMapMojo.groovy

      */
     MavenProject project
 
+    /**
+     *
+     * @parameter expression="${atlassian.dependency.report.file}" default-value="dependencies.txt"
+     * @required
+     * @readonly
+     */
     String reportFileName = 'dependencies.txt'
 
     SortedSet<DependencyReportLine> reportLines()

src/main/groovy/com/atlassian/maven/plugins/DependencyReportLine.groovy

                 groupId: artifact.groupId,
                 artifactId: artifact.artifactId,
                 version: artifact.version,
-                md5: md5)
+                md5: artifact.snapshot ? 'SNAPSHOT' : md5)
     }
 
     static DependencyReportLine from(String line)

src/main/groovy/com/atlassian/maven/plugins/ValidateDepdendenciesMojo.groovy

  */
 class ValidateDepdendenciesMojo extends AbstractMapMojo
 {
+    /**
+     *
+     * @parameter expression="${atlassian.dependency.skip}" default-value="false"
+     * @required
+     * @readonly
+     */
+    boolean skip = false
+
+
     void execute()
     {
+        if (skip)
+        {
+            log.info "Skipping dependency report validation"
+            return 
+        }
+
         final File report = new File(reportFileName)
         if (!report?.exists())
         {