Skip to content

Commit

Permalink
Github action for snapshot diktat
Browse files Browse the repository at this point in the history
  • Loading branch information
orchestr7 committed Jun 9, 2023
1 parent 6beb4c1 commit a1494fd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
42 changes: 22 additions & 20 deletions gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,28 @@ tasks.withType<KotlinCompile> {
}
}

@Suppress("COMMENTED_OUT_CODE", "WRONG_INDENTATION")
dependencies {
// workaround https://github.com/gradle/gradle/issues/15383
implementation(files(project.libs.javaClass.superclass.protectionDomain.codeSource.location))
implementation(libs.kotlin.gradle.plugin)
implementation(libs.reckon.gradle.plugin)
implementation(libs.detekt.gradle.plugin) {
exclude("io.github.detekt.sarif4k", "sarif4k")
}
// FixMe: return after 2.0.0
/* implementation(libs.diktat.gradle.plugin) {
run {
@Suppress("COMMENTED_OUT_CODE", "WRONG_INDENTATION")
dependencies {
// workaround https://github.com/gradle/gradle/issues/15383
implementation(files(project.libs.javaClass.superclass.protectionDomain.codeSource.location))
implementation(libs.kotlin.gradle.plugin)
implementation(libs.reckon.gradle.plugin)
implementation(libs.detekt.gradle.plugin) {
exclude("io.github.detekt.sarif4k", "sarif4k")
}
// FixMe: return after 2.0.0
/* implementation(libs.diktat.gradle.plugin) {
exclude("io.github.detekt.sarif4k", "sarif4k")
}*/
implementation(libs.sarif4k)
implementation(libs.gradle.plugin.spotless)
implementation(libs.publish.gradle.plugin)
// extra dependencies
implementation(libs.kotlin.stdlib)
implementation(libs.kotlin.stdlib.common)
implementation(libs.kotlin.stdlib.jdk7)
implementation(libs.kotlin.stdlib.jdk8)
implementation(libs.jetbrains.annotations)
implementation(libs.sarif4k)
implementation(libs.gradle.plugin.spotless)
implementation(libs.publish.gradle.plugin)
// extra dependencies
implementation(libs.kotlin.stdlib)
implementation(libs.kotlin.stdlib.common)
implementation(libs.kotlin.stdlib.jdk7)
implementation(libs.kotlin.stdlib.jdk8)
implementation(libs.jetbrains.annotations)
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.saveourtool.diktat.buildutils

// FixMe: remove after 2.0.0
@Suppress("RUN_IN_SCRIPT", "AVOID_NULL_CHECKS")
plugins {
id("com.saveourtool.diktat.buildutils.detekt-convention-configuration")
// FixMe: remove after 2.0.0
if (System.getenv("DIKTAT_SNAPSHOT") != null) {
id("com.saveourtool.diktat.buildutils.diktat-convention-configuration")
run {
@Suppress("RUN_IN_SCRIPT", "AVOID_NULL_CHECKS")
plugins {
id("com.saveourtool.diktat.buildutils.detekt-convention-configuration")
// FixMe: remove after 2.0.0
if (System.getenv("DIKTAT_SNAPSHOT") != null) {
id("com.saveourtool.diktat.buildutils.diktat-convention-configuration")
}
}
}

0 comments on commit a1494fd

Please sign in to comment.