68
Comments
  • 13
    I really don't understand those rants about gradle being slow...

    On every android project I could work, first build lasted at maximum 1 minute or two, mainly downloading and verifying dependencies, then it was taking approx. 5 to 8 seconds to build.

    Experienced on windows 7 and every linux.

    It was slow af on MacOS10.12 tho, luckily I don't have to extensively use this shit for development.
  • 2
    @Artemix same lol, the build is ~15 seconds tops on my old i5-U laptop
  • 9
    This is how you actually fix it.
  • 3
    I hate gradle but it’s because it’s designed horribly it’s horrifically out of scope, written in java, and it just grabs code off the internet and runs it. I’m convinced it was made by terrorists.
  • 2
    @FrodoSwaggins software updates must be hell then? It's code from the internet running.
    Of course you need to trust the person providing a package.
  • 2
    @succcubbus but it’s cryptographically signed with a trusted private key that is the assumption of my entire Linux image. Gradle it just connects up and grabs modules and runs them. And I didn’t even realize it was doing it until it had an ssl failure because... you guessed it... java has its own CA store and there is an arbitrary (and very short) key size limit in java 7 so you need java 8 to do it (god I hate java, crap like that makes me want to cut myself)
  • 2
    @FrodoSwaggins That would be just as bad if you'd download the packages yourself.
    Never understood java's ca-store either, why was that created?
  • 0
    @succcubbus no idea. Seems like it should just use the os store. Yeah but that’s my point, if gradle wants to run software, it should be software that was signed and downloaded through a validated method. I switched to Linux so I didn’t have to deal with that crap any more!
  • 2
    I've been working on multimodular projects w/ gradle for a few years. Tbh i have not seen anything wrong with it.. R u sure u r using it right?
  • 0
    @netikras There's no way to use it wrong. It's just slow in general
  • 0
    @bitsnpieces Damn look at you and your HTML skills
  • 1
    @Milenchy is it though...? Well yeah, if you run a full rebuild every time you might say it runs slow. But if you do use the (default) incremental builds, then it is fast enough. Can't compare it to mvn/ant as I don't have identical projects using all three, but... I really can't complain abt gradle's speed.

    How do you make it run slow...? I'm really curious now
  • 1
    @Artemix you must have loads of RAM
  • 1
    @Teknas is 8GB loads?
  • 0
  • 1
    @Artemix yeah even I have 8 gigs. It works fine on my Mac doing rebuild but clean builds take longer.

    Fresh installs take longest like > 10 mins
    But that's cause of dependencies I guess
  • 2
    TBH it doesn't even take that long to build projects on my i5 4gb ram laptop. Android projects mind you.
  • 1
    @FrodoSwaggins

    " it just grabs code off the internet and runs it."

    i tried to dev an app in offline mode.Had other works to attend to and didnt open AS at all for 10 days.

    Then i reopen the project, red underlines everywhere. Turns out gradle was bitching in the console.

    😤
  • 0
    @ArchLinux it’s literally the worst.
  • 1
    @bitsnpieces How did you modify it on your phone??

    On PC this is easy but I never found a reliable way to do it on my phone.
  • 0
    @LastDigitOfPi most android ROMs have those tools in the stock gallery app
  • 1
    @Artemix No I mean the HTML one. Not the strike through paint thingy
Your Job Suck?
Get a Better Job
Add Comment