From 9866ab3fbc0274754dc0fbdac99c93dfca18bca5 Mon Sep 17 00:00:00 2001 From: Cheryl King Date: Tue, 20 Feb 2024 10:07:56 -0600 Subject: [PATCH] Added explicit stopServer call --- .../groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy b/src/main/groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy index 905a849f..42441d53 100644 --- a/src/main/groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy +++ b/src/main/groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy @@ -544,6 +544,8 @@ class DevTask extends AbstractFeatureTask { // artifact that gets installed would be different. This can happen when using 'libertyRuntime' for example and // only changing the 'version'. The 'installLiberty' task cannot detect that difference today and would report the task as upToDate. // It only detects changes in install location currently. It would not be trivial to detect the other types of changes. + logger.error("A change in Liberty runtime installation configuration requires a 'clean'. Stopping dev mode."); + util.stopServer(); throw new PluginExecutionException("A change in Liberty runtime installation configuration requires a 'clean'. After running the 'clean' task, please run the 'libertyDev' task again for the change to take effect."); }