Skip to content

Commit

Permalink
Merge pull request #45291 from gsmet/gradle-less-pedantic
Browse files Browse the repository at this point in the history
Improve error message when no sources with Gradle
  • Loading branch information
gsmet authored Dec 27, 2024
2 parents 5290c33 + cd8ebf7 commit 1ffcee2
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 1ffcee2

Please sign in to comment.