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

Support launch a maven goal/gradle task via launch configuration #1106

Open
jdneo opened this issue Jan 4, 2022 · 3 comments
Open

Support launch a maven goal/gradle task via launch configuration #1106

jdneo opened this issue Jan 4, 2022 · 3 comments

Comments

@jdneo
Copy link
Member

jdneo commented Jan 4, 2022

[provide a description of the issue]

Currently there is no way to launch a Maven goal or Gradle task via the VS Code launch configuration, which is supported in other Java IDE.

@Nightenom
Copy link

Nightenom commented Nov 8, 2023

Hello, is there any progress? Seems like it's in backlog to me
I'm asking because of need to run virtual/internally created gradle task before executing the launch/attach command

@testforstephen
Copy link
Contributor

@Nightenom You can customize your Gradle task in tasks.json and then call it as a preLaunchTask in launch.json. See the link #120 (comment) for an example.

@Nightenom
Copy link

Thanks for link, but I'm aware of this, currently the task is added only if ide is detected and as such not easily available from command line. To use tasks.json I need to change the task/plugin impl, which is doable, but not desired. Not to mention the task has its dependsOn, which will need to be run every time I start debugging (vs once during setup from ide)
(Note: it's custom gradle plugin, I'm currently using eclipse.autoBuildTasks but it's overkill and slows down everything)

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

No branches or pull requests

3 participants