Skip to content

Commit

Permalink
Gradle: Update Spotless plugin to 6.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 23, 2024
1 parent 963b703 commit 2bf535b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# noinspection EditorConfigKeyCorrectness
[*.{kt,kts}]
ktlint_standard_no-wildcard-imports = disabled
ktlint_code_style = intellij_idea
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset
ktlint_standard_no-wildcard-imports = disabled
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("com.diffplug.spotless") version "6.21.0"
id("com.diffplug.spotless") version "6.25.0"
id("com.github.ben-manes.versions") version "0.48.0"
}

Expand All @@ -10,10 +10,10 @@ spotless {
}
kotlin {
target("**/*.kt")
ktlint().setEditorConfigPath(".editorconfig")
ktlint("1.2.1").setEditorConfigPath(".editorconfig")
}
kotlinGradle {
ktlint().setEditorConfigPath(".editorconfig")
ktlint("1.2.1").setEditorConfigPath(".editorconfig")
}
}

Expand Down
6 changes: 3 additions & 3 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ tasks {
"""
object Secrets {
object Sonatype {
const val user = ""
const val apiKey = ""
const val USER = ""
const val API_KEY = ""
}
}
Expand All @@ -32,4 +32,4 @@ object Secrets {
compileKotlin {
dependsOn(ensureSecretsExist)
}
}
}
4 changes: 2 additions & 2 deletions log4k-slf4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ publishing {
maven {
name = "sonatype"
credentials {
username = Secrets.Sonatype.user
password = Secrets.Sonatype.apiKey
username = Secrets.Sonatype.USER
password = Secrets.Sonatype.API_KEY
}
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
Expand Down
4 changes: 2 additions & 2 deletions log4k/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ publishing {
maven {
name = "sonatype"
credentials {
username = Secrets.Sonatype.user
password = Secrets.Sonatype.apiKey
username = Secrets.Sonatype.USER
password = Secrets.Sonatype.API_KEY
}
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
Expand Down

0 comments on commit 2bf535b

Please sign in to comment.