diff --git a/backend/build.gradle b/backend/build.gradle index f47b7b20a..87149598a 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -316,14 +316,16 @@ dockerRun { clean true } -task runChecker << { - def ready = false - while (!ready) { - try { - ready = 'http://localhost:10101'.toURL().text.length() > 0 - } catch (IOException e) { - println 'cannot reach site' - sleep 5000 +task runChecker { + doLast { + def ready = false + while (!ready) { + try { + ready = 'http://localhost:10101'.toURL().text.length() > 0 + } catch (IOException e) { + println 'cannot reach site' + sleep 5000 + } } } }