jojojames / flycheck-gradle

Flycheck extension for projects that use gradle
GNU General Public License v3.0
6 stars 4 forks source link

detect build.gradle.kts file #8

Open mrcpvn opened 5 years ago

mrcpvn commented 5 years ago

if kotlin DSL is used in the project gradle-kotlin checker will not be executed

jojojames commented 5 years ago

What does does that file use?

mrcpvn commented 5 years ago

Steps to reproduce:

gradle wrapper --gradle-version 5.2.1
./gradlew init --type kotlin-application --dsl kotlin

this will create a gradle project where the groovy build file is replaced by the kotlin build file. The file name is build.gradle.kts but all the gradle commands remain the same.

flycheck-gradle--find-build-gradle-file function only checks for build.gradle file

jojojames commented 5 years ago

Thanks, I added a check for that very file. I am short on time so didn't test it (knock on wood ^_^). Let me know if it still doesn't work for you.

mrcpvn commented 5 years ago

I can confirm that the issue is resolved. Thank you