diff --git a/README.md b/README.md index 35046e6..76e5ee3 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ buildscript { maven { url 'https://jitpack.io' } } dependencies { - classpath "se.bjurr.violations:violation-comments-to-gitlab-gradle-plugin:1.7" + classpath "se.bjurr.violations:violation-comments-to-gitlab-gradle-plugin:X" } } diff --git a/build.gradle b/build.gradle index 0d2c681..17779f8 100644 --- a/build.gradle +++ b/build.gradle @@ -20,5 +20,5 @@ apply from: project.buildscript.classLoader.getResource('gradle-plugin.gradle'). dependencies { - compile 'se.bjurr.violations:violation-comments-to-gitlab-lib:1.22' + compile 'se.bjurr.violations:violation-comments-to-gitlab-lib:1.23' } diff --git a/src/main/java/se/bjurr/violations/comments/gitlab/plugin/gradle/ViolationCommentsToGitLabTask.java b/src/main/java/se/bjurr/violations/comments/gitlab/plugin/gradle/ViolationCommentsToGitLabTask.java index 43ab547..3d4da1c 100644 --- a/src/main/java/se/bjurr/violations/comments/gitlab/plugin/gradle/ViolationCommentsToGitLabTask.java +++ b/src/main/java/se/bjurr/violations/comments/gitlab/plugin/gradle/ViolationCommentsToGitLabTask.java @@ -5,16 +5,18 @@ import static org.gitlab.api.TokenType.ACCESS_TOKEN; import static org.gitlab.api.TokenType.PRIVATE_TOKEN; import static se.bjurr.violations.comments.gitlab.lib.ViolationCommentsToGitLabApi.violationCommentsToGitLabApi; -import static se.bjurr.violations.lib.ViolationsReporterApi.violationsReporterApi; +import static se.bjurr.violations.lib.ViolationsApi.violationsApi; import static se.bjurr.violations.lib.model.SEVERITY.INFO; import java.util.ArrayList; import java.util.List; + import org.gitlab.api.AuthMethod; import org.gitlab.api.TokenType; import org.gradle.api.DefaultTask; import org.gradle.api.tasks.TaskAction; import org.gradle.api.tasks.TaskExecutionException; + import se.bjurr.violations.lib.model.SEVERITY; import se.bjurr.violations.lib.model.Violation; import se.bjurr.violations.lib.reports.Parser; @@ -106,7 +108,7 @@ public void gitChangelogPluginTasks() throws TaskExecutionException { final String reporter = configuredViolation.size() >= 4 ? configuredViolation.get(3) : null; final List parsedViolations = - violationsReporterApi() // + violationsApi() // .findAll(Parser.valueOf(configuredViolation.get(0))) // .inFolder(configuredViolation.get(1)) // .withPattern(configuredViolation.get(2)) //