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

Improve error message when no sources with Gradle #45291

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ public QuarkusDev extensionJvmOptions(Action<ExtensionDevModeJvmOptionFilter> ac
@TaskAction
public void startDev() {
if (!sourcesExist()) {
throw new GradleException("The `src/main/java` directory is required, please create it.");
throw new GradleException(
"At least one source directory (e.g. src/main/java, src/main/kotlin) should contain sources before starting Quarkus in dev mode when using Gradle. "
+ "Please initialize your project a bit further before restarting Quarkus in dev mode.");
}

if (!classesExist()) {
Expand Down
Loading