Hey! Anyone running in the same issue when trying ...
# ktlint
n
Hey! Anyone running in the same issue when trying to run
:ktlint
with SNAPSHOT-0.41.0? (gradle-6.7.1)
Copy code
Execution failed for task ':ktlint'.
> Could not resolve all files for configuration ':ktlint'.
   > Could not resolve com.pinterest:ktlint:0.41.0-SNAPSHOT.
     Required by:
         project :
      > Cannot choose between the following variants of com.pinterest:ktlint:0.41.0-SNAPSHOT:20201220.202723-13:
          - runtimeElements
          - shadowRuntimeElements
        All of them match the consumer attributes:
          - Variant 'runtimeElements' capability com.pinterest:ktlint:0.41.0-SNAPSHOT:
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
                  - Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'integration' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
                  - Provides org.jetbrains.kotlin.localToProject 'public' but the consumer didn't ask for it
                  - Provides org.jetbrains.kotlin.platform.type 'jvm' but the consumer didn't ask for it
          - Variant 'shadowRuntimeElements' capability com.pinterest:ktlint:0.41.0-SNAPSHOT:
              - Unmatched attributes:
                  - Provides org.gradle.category 'library' but the consumer didn't ask for it
                  - Provides org.gradle.dependency.bundling 'shadowed' but the consumer didn't ask for it
                  - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
                  - Provides org.gradle.status 'integration' but the consumer didn't ask for it
                  - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
j
Whose plugin are you using?
n
Hey! No plugin, we added the gradle tasks ourselves. Basically how it is described here: https://github.com/pinterest/ktlint#without-a-plugin
j
@tapchicoma did ktlint start publishing the Gradle Metadata?
❤️ 1
t
@jlleitschuh yes, it could be
n
can I help somehow?
t
could you try with
ktlint-gradle
plugin? You could set snapshot version there as well
n
k, will let you know ASAP
thanks!
t
@jlleitschuh recently I've updated shadow plugin that started to support publishing metadata since version
6.0.0
@neugartf if it will not help - I will try to look into it.
0.40.0
should work correctly.