Skip to content

Conversation

@Goooler
Copy link
Contributor

@Goooler Goooler commented Dec 18, 2025

It's not required by the runtime classpath. This also fixes errors like:

Execution failed for task ':ktfmt:compileTestKotlin'.
> Could not resolve all files for configuration ':ktfmt:testCompileClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-test:2.2.0.
     Required by:
         project :ktfmt
      > Unable to find a variant with the requested capability: coordinates 'org.jetbrains.kotlin:kotlin-test-framework-junit':
           - Variant 'compile' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'enforced-platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
           - Variant 'enforced-platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
           - Variant 'javadoc' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
           - Variant 'platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
           - Variant 'runtime' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'sources' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'

It's not required by the runtime classpath. This also fixes errors like:

```
Execution failed for task ':ktfmt:compileTestKotlin'.
> Could not resolve all files for configuration ':ktfmt:testCompileClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-test:2.2.0.
     Required by:
         project :ktfmt
      > Unable to find a variant with the requested capability: coordinates 'org.jetbrains.kotlin:kotlin-test-framework-junit':
           - Variant 'compile' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'enforced-platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
           - Variant 'enforced-platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
           - Variant 'javadoc' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
           - Variant 'platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
           - Variant 'runtime' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'sources' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
```
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 18, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 18, 2025

@hick209 has imported this pull request. If you are a Meta employee, you can view this in D89469731.

@meta-codesync meta-codesync bot closed this in 9203a28 Dec 18, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 18, 2025

@hick209 merged this pull request in 9203a28.

@Goooler Goooler deleted the kotlin-test-dep branch December 18, 2025 23:04
dayanruben pushed a commit to dayanruben/ktfmt that referenced this pull request Dec 19, 2025
Summary:
It's not required by the runtime classpath. This also fixes errors like:

```
Execution failed for task ':ktfmt:compileTestKotlin'.
> Could not resolve all files for configuration ':ktfmt:testCompileClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-test:2.2.0.
     Required by:
         project :ktfmt
      > Unable to find a variant with the requested capability: coordinates 'org.jetbrains.kotlin:kotlin-test-framework-junit':
           - Variant 'compile' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'enforced-platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
           - Variant 'enforced-platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-enforced-platform:2.2.0'
           - Variant 'javadoc' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'platform-compile' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
           - Variant 'platform-runtime' provides 'org.jetbrains.kotlin:kotlin-test-derived-platform:2.2.0'
           - Variant 'runtime' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
           - Variant 'sources' provides 'org.jetbrains.kotlin:kotlin-test:2.2.0'
```

Pull Request resolved: facebook#579

Reviewed By: strulovich

Differential Revision: D89469731

Pulled By: hick209

fbshipit-source-id: 18eca1fd1d42673af0f240072418690a41a7fe08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants