From cd6f8a42595643579826ef26bb17df8278489b5a Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Fri, 24 Jul 2020 09:34:24 +0200 Subject: [PATCH] fix: ktlint for kts files --- build.gradle.kts | 3 ++- sentry-android-core/build.gradle.kts | 4 ++-- sentry-android-ndk/build.gradle.kts | 4 ++-- sentry-android-timber/build.gradle.kts | 6 +++--- sentry-android/build.gradle.kts | 4 ++-- sentry-core/build.gradle.kts | 5 ++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 42d9b10d6..b6d2b931d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -65,10 +65,11 @@ spotless { } kotlin { - ktlint() target("**/*.kt") + ktlint() } kotlinGradle { + target("**/*.kts") ktlint() } } diff --git a/sentry-android-core/build.gradle.kts b/sentry-android-core/build.gradle.kts index b64b41cd9..ae4196bfd 100644 --- a/sentry-android-core/build.gradle.kts +++ b/sentry-android-core/build.gradle.kts @@ -90,7 +90,7 @@ dependencies { testImplementation(Config.TestLibs.awaitility) } -//TODO: move thse blocks to parent gradle file, DRY +// TODO: move thse blocks to parent gradle file, DRY configure { userOrg = Config.Sentry.userOrg groupId = project.group.toString() @@ -110,5 +110,5 @@ configure { devEmail = Config.Sentry.devEmail scmConnection = Config.Sentry.scmConnection scmDevConnection = Config.Sentry.scmDevConnection - scmUrl = Config.Sentry.scmUrl + scmUrl = Config.Sentry.scmUrl } diff --git a/sentry-android-ndk/build.gradle.kts b/sentry-android-ndk/build.gradle.kts index dee6a9235..a98840944 100644 --- a/sentry-android-ndk/build.gradle.kts +++ b/sentry-android-ndk/build.gradle.kts @@ -114,7 +114,7 @@ tasks.named("preBuild") { dependsOn(initNative) } -//TODO: move thse blocks to parent gradle file, DRY +// TODO: move thse blocks to parent gradle file, DRY configure { userOrg = Config.Sentry.userOrg groupId = project.group.toString() @@ -134,5 +134,5 @@ configure { devEmail = Config.Sentry.devEmail scmConnection = Config.Sentry.scmConnection scmDevConnection = Config.Sentry.scmDevConnection - scmUrl = Config.Sentry.scmUrl + scmUrl = Config.Sentry.scmUrl } diff --git a/sentry-android-timber/build.gradle.kts b/sentry-android-timber/build.gradle.kts index 75a857800..c788ca78c 100644 --- a/sentry-android-timber/build.gradle.kts +++ b/sentry-android-timber/build.gradle.kts @@ -1,7 +1,7 @@ import com.novoda.gradle.release.PublishExtension -import org.jetbrains.kotlin.config.KotlinCompilerVersion import io.gitlab.arturbosch.detekt.Detekt import io.gitlab.arturbosch.detekt.extensions.DetektExtension +import org.jetbrains.kotlin.config.KotlinCompilerVersion plugins { id("com.android.library") @@ -79,7 +79,7 @@ dependencies { testImplementation(Config.TestLibs.mockitoKotlin) } -//TODO: move thse blocks to parent gradle file, DRY +// TODO: move thse blocks to parent gradle file, DRY configure { userOrg = Config.Sentry.userOrg groupId = project.group.toString() @@ -99,7 +99,7 @@ configure { devEmail = Config.Sentry.devEmail scmConnection = Config.Sentry.scmConnection scmDevConnection = Config.Sentry.scmDevConnection - scmUrl = Config.Sentry.scmUrl + scmUrl = Config.Sentry.scmUrl } tasks.withType { diff --git a/sentry-android/build.gradle.kts b/sentry-android/build.gradle.kts index b67f905ba..6e48eb1cc 100644 --- a/sentry-android/build.gradle.kts +++ b/sentry-android/build.gradle.kts @@ -35,7 +35,7 @@ dependencies { api(project(":sentry-android-ndk")) } -//TODO: move these blocks to parent gradle file, DRY +// TODO: move these blocks to parent gradle file, DRY configure { userOrg = Config.Sentry.userOrg groupId = project.group.toString() @@ -55,5 +55,5 @@ configure { devEmail = Config.Sentry.devEmail scmConnection = Config.Sentry.scmConnection scmDevConnection = Config.Sentry.scmDevConnection - scmUrl = Config.Sentry.scmUrl + scmUrl = Config.Sentry.scmUrl } diff --git a/sentry-core/build.gradle.kts b/sentry-core/build.gradle.kts index f86852745..302682dc2 100644 --- a/sentry-core/build.gradle.kts +++ b/sentry-core/build.gradle.kts @@ -65,7 +65,7 @@ tasks { } } -//TODO: move thse blocks to parent gradle file, DRY +// TODO: move thse blocks to parent gradle file, DRY configure { userOrg = Config.Sentry.userOrg groupId = project.group.toString() @@ -85,6 +85,5 @@ configure { devEmail = Config.Sentry.devEmail scmConnection = Config.Sentry.scmConnection scmDevConnection = Config.Sentry.scmDevConnection - scmUrl = Config.Sentry.scmUrl + scmUrl = Config.Sentry.scmUrl } -