Skip to content

Commit c04907f

Browse files
chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v13 (#180)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nicola Corti <corti.nico@gmail.com>
1 parent e9d07df commit c04907f

File tree

6 files changed

+38
-20
lines changed

6 files changed

+38
-20
lines changed

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ plugins {
1010

1111
subprojects {
1212
apply {
13-
plugin(rootProject.libs.plugins.detekt.get().pluginId)
14-
plugin(rootProject.libs.plugins.ktlint.get().pluginId)
13+
plugin(
14+
rootProject.libs.plugins.detekt
15+
.get()
16+
.pluginId,
17+
)
18+
plugin(
19+
rootProject.libs.plugins.ktlint
20+
.get()
21+
.pluginId,
22+
)
1523
}
1624

1725
ktlint {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
detekt = "1.23.8"
33
kotlin = "2.1.21"
4-
ktlintGradle = "12.3.0"
4+
ktlintGradle = "13.0.0"
55
pluginPublish = "1.3.1"
66
versionCheck = "0.52.0"
77

plugin-build/build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ allprojects {
1313
version = property("VERSION").toString()
1414

1515
apply {
16-
plugin(rootProject.libs.plugins.detekt.get().pluginId)
17-
plugin(rootProject.libs.plugins.ktlint.get().pluginId)
16+
plugin(
17+
rootProject.libs.plugins.detekt
18+
.get()
19+
.pluginId,
20+
)
21+
plugin(
22+
rootProject.libs.plugins.ktlint
23+
.get()
24+
.pluginId,
25+
)
1826
}
1927

2028
ktlint {

plugin-build/plugin/src/main/java/com/ncorti/kotlin/gradle/template/plugin/TemplateExtension.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const val DEFAULT_OUTPUT_FILE = "template-example.txt"
1010
@Suppress("UnnecessaryAbstractClass")
1111
abstract class TemplateExtension
1212
@Inject
13-
constructor(project: Project) {
13+
constructor(
14+
project: Project,
15+
) {
1416
private val objects = project.objects
1517

1618
// Example of a property that is mandatory. The task will

plugin-build/settings.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ dependencyResolutionManagement {
1919
}
2020

2121
plugins {
22-
id("com.gradle.develocity") version "4.0.2"
22+
id("com.gradle.develocity") version "4.0.2"
2323
}
2424

2525
develocity {
26-
buildScan.termsOfUseUrl = "https://gradle.com/terms-of-service"
27-
buildScan.termsOfUseAgree = "yes"
28-
buildScan.publishing.onlyIf {
29-
System.getenv("GITHUB_ACTIONS") == "true" &&
30-
it.buildResult.failures.isNotEmpty()
31-
}
26+
buildScan.termsOfUseUrl = "https://gradle.com/terms-of-service"
27+
buildScan.termsOfUseAgree = "yes"
28+
buildScan.publishing.onlyIf {
29+
System.getenv("GITHUB_ACTIONS") == "true" &&
30+
it.buildResult.failures.isNotEmpty()
31+
}
3232
}
3333

3434
rootProject.name = ("com.ncorti.kotlin.gradle.template")

settings.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ dependencyResolutionManagement {
1313
}
1414

1515
plugins {
16-
id("com.gradle.develocity") version "4.0.2"
16+
id("com.gradle.develocity") version "4.0.2"
1717
}
1818

1919
develocity {
20-
buildScan.termsOfUseUrl = "https://gradle.com/terms-of-service"
21-
buildScan.termsOfUseAgree = "yes"
22-
buildScan.publishing.onlyIf {
23-
System.getenv("GITHUB_ACTIONS") == "true" &&
24-
it.buildResult.failures.isNotEmpty()
25-
}
20+
buildScan.termsOfUseUrl = "https://gradle.com/terms-of-service"
21+
buildScan.termsOfUseAgree = "yes"
22+
buildScan.publishing.onlyIf {
23+
System.getenv("GITHUB_ACTIONS") == "true" &&
24+
it.buildResult.failures.isNotEmpty()
25+
}
2626
}
2727

2828
rootProject.name = "kotlin-gradle-plugin-template"

0 commit comments

Comments
 (0)