diff --git a/src/main/java/com/redhat/devtools/intellij/quarkus/gradle/AbstractGradleToolDelegate.java b/src/main/java/com/redhat/devtools/intellij/quarkus/gradle/AbstractGradleToolDelegate.java index 00d649c95..e91fa59f0 100644 --- a/src/main/java/com/redhat/devtools/intellij/quarkus/gradle/AbstractGradleToolDelegate.java +++ b/src/main/java/com/redhat/devtools/intellij/quarkus/gradle/AbstractGradleToolDelegate.java @@ -365,6 +365,7 @@ public RunnerAndConfigurationSettings getConfigurationDelegate(Module module, Qu parameters += " -Dquarkus.profile=" + configuration.getProfile(); } gradleConfiguration.getSettings().setScriptParameters(parameters); + gradleConfiguration.setBeforeRunTasks(configuration.getBeforeRunTasks()); return settings; } } diff --git a/src/main/java/com/redhat/devtools/intellij/quarkus/maven/MavenToolDelegate.java b/src/main/java/com/redhat/devtools/intellij/quarkus/maven/MavenToolDelegate.java index 34db1cec5..d35d1f79f 100644 --- a/src/main/java/com/redhat/devtools/intellij/quarkus/maven/MavenToolDelegate.java +++ b/src/main/java/com/redhat/devtools/intellij/quarkus/maven/MavenToolDelegate.java @@ -252,6 +252,7 @@ public RunnerAndConfigurationSettings getConfigurationDelegate(Module module, Qu mavenConfiguration.getRunnerSettings().getMavenProperties().put("quarkus.profile", configuration.getProfile()); } mavenConfiguration.getRunnerSettings().getMavenProperties().put("debug", Integer.toString(configuration.getPort())); + mavenConfiguration.setBeforeRunTasks(configuration.getBeforeRunTasks()); return settings; }