From 9a6eb335a2d61277a503463e28afe9f30c3cae39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Wed, 6 Sep 2023 00:12:50 +0200 Subject: [PATCH 1/2] Do not print console logs when running on Java files Java files should be excluded, but for some reason they show up. This needs to be reproed & investigated --- .../kotlin/io/github/usefulness/tasks/workers/KtlintWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktlint-gradle-plugin/src/main/kotlin/io/github/usefulness/tasks/workers/KtlintWorker.kt b/ktlint-gradle-plugin/src/main/kotlin/io/github/usefulness/tasks/workers/KtlintWorker.kt index fd692df1..2ccd4524 100644 --- a/ktlint-gradle-plugin/src/main/kotlin/io/github/usefulness/tasks/workers/KtlintWorker.kt +++ b/ktlint-gradle-plugin/src/main/kotlin/io/github/usefulness/tasks/workers/KtlintWorker.kt @@ -51,7 +51,7 @@ internal abstract class KtlintWorker : WorkAction { logger.debug("$name linting: $relativePath") if (file.extension !in supportedExtensions) { - logger.warn("$name ignoring non Kotlin file: $relativePath") + logger.info("$name ignoring non-Kotlin file: $relativePath") return@forEach } From 0cb11e9d341b60b75449f78a41dbc6343d2f6c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Wed, 6 Sep 2023 00:17:28 +0200 Subject: [PATCH 2/2] Disable VFS to speed up Windows builds --- .github/workflows/default.yml | 3 +++ .github/workflows/dependencies.yml | 1 + .github/workflows/diffuse.yml | 1 + .github/workflows/publish_release.yml | 1 + .github/workflows/publish_snapshot.yml | 2 ++ 5 files changed, 8 insertions(+) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 4f4c6bac..a503add6 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -27,6 +27,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 @@ -86,6 +87,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 @@ -157,6 +159,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 28901d17..fa0b7c8b 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -29,6 +29,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 diff --git a/.github/workflows/diffuse.yml b/.github/workflows/diffuse.yml index 68bdc755..df8bb2c3 100644 --- a/.github/workflows/diffuse.yml +++ b/.github/workflows/diffuse.yml @@ -33,6 +33,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 8c68a90d..19d1930c 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -27,6 +27,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml index 7087b5c7..4c017d3d 100644 --- a/.github/workflows/publish_snapshot.yml +++ b/.github/workflows/publish_snapshot.yml @@ -29,6 +29,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3 @@ -61,6 +62,7 @@ jobs: run: | mkdir -p ~/.gradle printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties + printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties shell: bash - uses: actions/setup-java@v3