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 5958619 commit 16b2c5d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/diktat_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
# FixMe: return after 2.0.0
# -x diktatCheck

- name: 'Copy files and set flags'
run: |
echo "DIKTAT_SNAPSHOT=1" >> $GITHUB_ENV
mv gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.txt gradle/plugins/src/main/kotlin/com/saveourtool/diktat/buildutils/diktat-convention-configuration.gradle.kts
- name: 'Override <gradle/libs.versions.toml>'
run: |
Expand Down
1 change: 1 addition & 0 deletions gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repositories {
gradlePluginPortal()
}

@Suppress("COMMENTED_OUT_CODE", "WRONG_INDENTATION")
dependencies {
// workaround https://github.com/gradle/gradle/issues/15383
implementation(files(project.libs.javaClass.superclass.protectionDomain.codeSource.location))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.saveourtool.diktat.buildutils

@Suppress("AVOID_NULL_CHECKS")
plugins {
id("com.saveourtool.diktat.buildutils.detekt-convention-configuration")
// FixMe: remove after 2.0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.saveourtool.diktat.buildutils


plugins {
id("com.saveourtool.diktat.diktat-gradle-plugin")
}
Expand Down

0 comments on commit 16b2c5d

Please sign in to comment.