Gradle Startup time taking up 90% of the build

I have this annoying bug where startup takes 90% or more of the whole project build, I don’t have a lot of plugins or dependencies, project is a libgdx game

This makes it incredibly annoying to do anything

Here’s two example profiles
https://files.debugspeople.com/gradle/profile-2016-06-18-01-36-43.html
https://files.debugspeople.com/gradle/profile-2016-06-18-04-35-18.html

and a log
https://files.debugspeople.com/gradle/gradle.log

BTW: daemon, parallel build and configuration on demand are enabled

Gradle Version: 2.14
Operating System: Windows 10

Hi Ashley,

I cannot reproduce your problem locally. A clean build of https://github.com/forsakenharmony/GameProt take about 3s on my machine where most time is spent on compiling Kotlin classes.

Is it possible that your network setup is somewhat broken and Gradle tries to check an unreachable URL when resolving the buildscript dependencies?

Cheers,
Stefan

The problem seems to have something to do with Internet connectivity, it works fine on LAN and completely offline, but when I tether my phone for internet I get this strange bug