enable "configuration on demand" mode

use Gradle's incubating "configuration on demand" mode so don't need javafx if only build server(like gradle :server:build)