diff --git a/WordPress/build.gradle b/WordPress/build.gradle index beb369732055..e918f5316737 100644 --- a/WordPress/build.gradle +++ b/WordPress/build.gradle @@ -1,6 +1,4 @@ import io.sentry.android.gradle.extensions.InstrumentationFeature -import se.bjurr.violations.comments.github.plugin.gradle.ViolationCommentsToGitHubTask -import se.bjurr.violations.lib.model.SEVERITY plugins { alias(libs.plugins.android.application) @@ -8,7 +6,6 @@ plugins { alias(libs.plugins.kotlin.parcelize) alias(libs.plugins.kotlin.allopen) alias(libs.plugins.sentry) - alias(libs.plugins.violation.comments) alias(libs.plugins.google.services) alias(libs.plugins.google.dagger.hilt) alias(libs.plugins.kotlinx.kover) @@ -593,32 +590,6 @@ if ((file('google-services.json').text) == (file('google-services.json-example') println("WARNING: You're using the example google-services.json file. Google login will fail.") } -tasks.register("violationCommentsToGitHub", ViolationCommentsToGitHubTask) { - repositoryOwner = "wordpress-mobile" - repositoryName = "WordPress-Android" - pullRequestId = System.properties['GITHUB_PULLREQUESTID'] - username = System.properties['GITHUB_USERNAME'] - password = System.properties['GITHUB_PASSWORD'] - oAuth2Token = System.properties['GITHUB_OAUTH2TOKEN'] - gitHubUrl = "https://api.github.com/" - createCommentWithAllSingleFileComments = false - createSingleFileComments = true - commentOnlyChangedContent = true - minSeverity = SEVERITY.INFO //ERROR, INFO, WARN - commentTemplate = """ -**Reporter**: {{violation.reporter}}{{#violation.rule}}\n -**Rule**: {{violation.rule}}{{/violation.rule}} -**Severity**: {{violation.severity}} -**File**: {{violation.file}}:{{violation.startLine}}{{#violation.source}} -**Source**: {{violation.source}}{{/violation.source}} -{{violation.message}} -""" - violations = [ - ["CHECKSTYLE", ".", ".*/build/.*/checkstyle/.*\\.xml\$", "CheckStyle"], - ["CHECKSTYLE", ".", ".*/build/.*/detekt/.*\\.xml\$", "Detekt"] - ] -} - tasks.register("printVersionName") { doLast { println android.defaultConfig.versionName diff --git a/build.gradle b/build.gradle index 4ee6835557de..678101984b2f 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,6 @@ plugins { alias(libs.plugins.automattic.measure.builds) alias(libs.plugins.kotlinx.kover) alias(libs.plugins.dependency.analysis) - alias(libs.plugins.violation.comments).apply(false) alias(libs.plugins.androidx.navigation.safeargs).apply(false) alias(libs.plugins.android.application).apply(false) alias(libs.plugins.android.library).apply(false) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 83ff271d214a..c74375500793 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -95,7 +95,6 @@ squareup-java-poet = '1.13.0' squareup-kotlin-poet = '1.18.1' squareup-okhttp3 = '4.12.0' squareup-retrofit = '2.11.0' -violation-comments = '1.70.0' wellsql = '2.0.0' wiremock = '2.26.3' wordpress-aztec = 'v2.1.4' @@ -281,4 +280,3 @@ kotlinx-kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kotlinx-kov ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } sentry = { id = "io.sentry.android.gradle", version.ref = "sentry" } room = { id = "androidx.room", version.ref = "androidx-room" } -violation-comments = { id = "se.bjurr.violations.violation-comments-to-github-gradle-plugin", version.ref = "violation-comments" }