From c05624faf514abe67b3bc40073f745f762c29461 Mon Sep 17 00:00:00 2001 From: Hallvard Traetteberg <hal@ntnu.no> Date: Fri, 16 Aug 2019 16:13:17 +0200 Subject: [PATCH] Try something else --- simpleexample/build.gradle | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/simpleexample/build.gradle b/simpleexample/build.gradle index 5a0e5c3..58ca121 100644 --- a/simpleexample/build.gradle +++ b/simpleexample/build.gradle @@ -26,19 +26,17 @@ javafx { // launch debugger using Remote Java Application debug launch configuration } -test { - // don't run UI test on server (that cannot run javafx) - if (project.hasProperty('gitlab-ci')) { - exclude 'simpleex.ui/*' - } +sourceSets { + main { + java { + // don't include UI without FxMapControl installed + if (project.hasProperty('gitlab-ci')) { + exclude 'simpleex.ui/*' + } + } + } } -compile { - // don't compile UI without FxMapControl installed - if (project.hasProperty('gitlab-ci')) { - exclude 'simpleex.ui/*' - } -} test { // don't run UI test on server (that cannot run javafx) if (project.hasProperty('gitlab-ci')) { -- GitLab