Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a gradle project in VS code results in Kotlin DSL accessors in the wrong directory: bin/main/gradle/kotlin/dsl/ #1435

Open
yogurtearl opened this issue Feb 2, 2024 · 2 comments

Comments

@yogurtearl
Copy link

yogurtearl commented Feb 2, 2024

Loading a gradle project in VS code results in Kotlin DSL accessors in the wrong directory: bin/main/gradle/kotlin/dsl/

Environment
  • Operating System: macOS 13.6.2
  • JDK version: 17
  • Visual Studio Code version: 1.86.0
  • Java extension version: v0.25.15
  • Java Debugger extension version: 0.56.0
Steps To Reproduce
  1. load an gradle 8.5 project that uses *.gradle.kts files and included builds. e.g. this project: https://github.com/jjohannes/idiomatic-gradle/
  2. load it with the VS code gradle extensions.
Current Result

The kotlin DSL accessors are generated into bin/main/gradle/kotlin/dsl/ instead of the normal build/generated-sources/kotlin-dsl-accessors/kotlin/gradle/kotlin/dsl/ location.

Expected Result

all the build output is in the Gradle configure build out directory ( /build by default)

Additional Informations

Using Gradle 8.5

Possibly related issues
@testforstephen
Copy link
Contributor

Do you install Microsoft "Gradle for Java" extension? And what's the setting for "java.gradle.buildServer.enabled"?

@yogurtearl
Copy link
Author

yogurtearl commented Feb 5, 2024

Do you install Microsoft "Gradle for Java" extension?

yes.

And what's the setting for "java.gradle.buildServer.enabled"?

That setting is "on"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants