Skip to content

Commit

Permalink
Revert "disabling kotlinter until fixes are in for new kotlin"
Browse files Browse the repository at this point in the history
This reverts commit 7c04f19.
  • Loading branch information
robertfmurdock committed Dec 14, 2024
1 parent 9072888 commit 589b133
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 121 deletions.
20 changes: 10 additions & 10 deletions convention-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
//import org.jmailen.gradle.kotlinter.tasks.FormatTask
//import org.jmailen.gradle.kotlinter.tasks.LintTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

repositories {
maven { url = uri("https://plugins.gradle.org/m2/") }
Expand All @@ -13,7 +13,7 @@ plugins {
id("java-gradle-plugin")
alias(libs.plugins.com.github.ben.manes.versions)
alias(libs.plugins.nl.littlerobots.version.catalog.update)
// alias(libs.plugins.org.jmailen.kotlinter)
alias(libs.plugins.org.jmailen.kotlinter)
}

kotlin {
Expand All @@ -26,7 +26,7 @@ dependencies {
implementation(libs.org.jetbrains.kotlin.kotlin.stdlib)
implementation(libs.org.jetbrains.kotlin.kotlin.gradle.plugin)
implementation(libs.com.github.ben.manes.gradle.versions.plugin)
// implementation(libs.org.jmailen.gradle.kotlinter.gradle)
implementation(libs.org.jmailen.gradle.kotlinter.gradle)
implementation(libs.com.fasterxml.jackson.core.jackson.databind)
implementation(platform(libs.com.zegreatrob.testmints.testmints.bom))
implementation("com.zegreatrob.testmints:mint-logs-plugin")
Expand All @@ -46,12 +46,12 @@ tasks {
.matches(candidate.version)
}
}
// withType(FormatTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// withType(LintTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
withType(FormatTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
withType(LintTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
clean {
delete(rootProject.layout.buildDirectory)
dependsOn(provider { (getTasksByName("clean", true) - this).toList() })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
plugins {
kotlin("multiplatform")
id("com.zegreatrob.jsmints.plugins.reports")
// id("org.jmailen.kotlinter")
id("org.jmailen.kotlinter")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.zegreatrob.jsmints.plugins

plugins {
// id("org.jmailen.kotlinter")
id("org.jmailen.kotlinter")
}
4 changes: 2 additions & 2 deletions libraries/dependency-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
`java-platform`
id("com.zegreatrob.jsmints.plugins.versioning")
id("com.zegreatrob.jsmints.plugins.publish")
// id("org.jmailen.kotlinter")
id("org.jmailen.kotlinter")
id("com.zegreatrob.jsmints.plugins.ncu")
}

Expand Down Expand Up @@ -49,4 +49,4 @@ afterEvaluate {
dependsOn("publishKotlinMultiplatformPublicationToSonatypeRepository")
}
}
}
}
41 changes: 21 additions & 20 deletions libraries/minreact-plugin-test/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
//import org.jmailen.gradle.kotlinter.tasks.FormatTask
//import org.jmailen.gradle.kotlinter.tasks.LintTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

plugins {
id("com.zegreatrob.jsmints.plugins.minreact")
Expand Down Expand Up @@ -54,22 +54,23 @@ dependencies {
}

tasks {
// formatKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// formatKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
// withType(FormatTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// withType(LintTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// lintKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// lintKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
formatKotlinJsMain {
dependsOn("kspKotlinJs")
}
formatKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
withType(FormatTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
withType(LintTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
lintKotlinJsMain {
dependsOn("kspKotlinJs")
}
lintKotlinJsTest {
dependsOn("kspTestKotlinJs")
}

}
41 changes: 21 additions & 20 deletions libraries/react-data-loader/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//import org.jmailen.gradle.kotlinter.tasks.FormatTask
//import org.jmailen.gradle.kotlinter.tasks.LintTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

plugins {
id("com.zegreatrob.jsmints.plugins.minreact")
Expand Down Expand Up @@ -43,22 +43,23 @@ dependencies {
}

tasks {
// formatKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// formatKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
// withType(FormatTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// withType(LintTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// lintKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// lintKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
formatKotlinJsMain {
dependsOn("kspKotlinJs")
}
formatKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
withType(FormatTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
withType(LintTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
lintKotlinJsMain {
dependsOn("kspKotlinJs")
}
lintKotlinJsTest {
dependsOn("kspTestKotlinJs")
}

}
40 changes: 20 additions & 20 deletions libraries/react-testing-library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//import org.jmailen.gradle.kotlinter.tasks.FormatTask
//import org.jmailen.gradle.kotlinter.tasks.LintTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

plugins {
id("com.zegreatrob.jsmints.plugins.wrapper")
Expand Down Expand Up @@ -43,22 +43,22 @@ dependencies {
}

tasks {
// formatKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// formatKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
// withType(FormatTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// withType(LintTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// lintKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// lintKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
formatKotlinJsMain {
dependsOn("kspKotlinJs")
}
formatKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
withType(FormatTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
withType(LintTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
lintKotlinJsMain {
dependsOn("kspKotlinJs")
}
lintKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
}
40 changes: 20 additions & 20 deletions libraries/wdio-testing-library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//import org.jmailen.gradle.kotlinter.tasks.FormatTask
//import org.jmailen.gradle.kotlinter.tasks.LintTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

plugins {
id("com.zegreatrob.jsmints.plugins.wrapper")
Expand Down Expand Up @@ -38,23 +38,23 @@ tasks {
named("jsTestTestDevelopmentExecutableCompileSync") {
enabled = false
}
// formatKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// formatKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
// withType(FormatTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// withType(LintTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// lintKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// lintKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
formatKotlinJsMain {
dependsOn("kspKotlinJs")
}
formatKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
withType(FormatTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
withType(LintTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
lintKotlinJsMain {
dependsOn("kspKotlinJs")
}
lintKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
}

41 changes: 21 additions & 20 deletions libraries/wrapper-plugin-test/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
//import org.jmailen.gradle.kotlinter.tasks.FormatTask
//import org.jmailen.gradle.kotlinter.tasks.LintTask
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask

plugins {
id("com.zegreatrob.jsmints.plugins.wrapper")
Expand Down Expand Up @@ -48,22 +48,23 @@ dependencies {
}

tasks {
// formatKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// formatKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
// withType(FormatTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// withType(LintTask::class) {
// exclude { spec -> spec.file.absolutePath.contains("generated") }
// }
// lintKotlinJsMain {
// dependsOn("kspKotlinJs")
// }
// lintKotlinJsTest {
// dependsOn("kspTestKotlinJs")
// }
formatKotlinJsMain {
dependsOn("kspKotlinJs")
}
formatKotlinJsTest {
dependsOn("kspTestKotlinJs")
}
withType(FormatTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
withType(LintTask::class) {
exclude { spec -> spec.file.absolutePath.contains("generated") }
}
lintKotlinJsMain {
dependsOn("kspKotlinJs")
}
lintKotlinJsTest {
dependsOn("kspTestKotlinJs")
}

}
14 changes: 7 additions & 7 deletions plugins/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
`java-gradle-plugin`
`kotlin-dsl`
alias(libs.plugins.com.gradle.plugin.publish)
// alias(libs.plugins.org.jmailen.kotlinter)
alias(libs.plugins.org.jmailen.kotlinter)
id("org.jetbrains.kotlin.jvm") version (embeddedKotlinVersion)
signing
}
Expand Down Expand Up @@ -80,12 +80,12 @@ kotlin {
}

tasks {
// formatKotlinMain {
// exclude { spec -> spec.file.absolutePath.contains("generated-sources") }
// }
// lintKotlinMain {
// exclude { spec -> spec.file.absolutePath.contains("generated-sources") }
// }
formatKotlinMain {
exclude { spec -> spec.file.absolutePath.contains("generated-sources") }
}
lintKotlinMain {
exclude { spec -> spec.file.absolutePath.contains("generated-sources") }
}
val copyTemplates by registering(Copy::class) {
inputs.property("version", rootProject.version)
filteringCharset = "UTF-8"
Expand Down

0 comments on commit 589b133

Please sign in to comment.