Questions tagged [gradle]

a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language [DSL] instead of the more traditional XML form of declaring the project configuration.

Unlike Apache Maven, which defines lifecycles, and Apache Ant, where targets are invoked based upon a depends-on partial ordering, Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.

Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.

Source: gradle.org | Wikipedia

34 questions
67
votes
3 answers

How do I upgrade Gradle?

This shows that Gradle is up to date: thufir@doge:~$ sudo apt install gradle Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the newest version (2.10-1). 0 upgraded, 0 newly…
Thufir
  • 4,441
  • 17
  • 80
  • 146
64
votes
5 answers

Gradle in Ubuntu for Launchpad

It appears that Ubuntu doesn't have new versions of Gradle in their repositories for some reason. I need it for a project that will be build by Launchpad. What should I do about this?
Marlinc
  • 771
  • 1
  • 6
  • 18
27
votes
5 answers

17.10 openjdk and oracle jdk 8 and 9 the trustAnchors parameter must be non-empty

I've just installed 17.10 in a fresh VM. Trying to set up a development environment, when I run gradle or ./gradlew I get the following error: * What went wrong: Error resolving plugin [id: 'com.github.johnrengelman.shadow', version: '2.0.0'] >…
junglie85
  • 469
  • 1
  • 4
  • 10
17
votes
1 answer

Gradle or Android Studio freezes Ubuntu

I've got a problem with my Android Studio/Gradle regularly freezing my entire system. What happens? I work on my Android Studio and at first, everything is ok. For approx 5 - 10 builds/deploys everything is fine but then I click the "Run 'app'"…
Miroslav
  • 271
  • 2
  • 7
7
votes
1 answer

Intellij Idea Community Edition, cannot set `Gradle home`

I installed Gradle from the repository. Then I downloaded Intellij Idea Community Edition from the official website and installed it. I set the Java JDK and now I am trying to open a Gradle Project, but the problem is that it doesn't accept my…
elect
  • 521
  • 3
  • 6
  • 19
6
votes
1 answer

Gradle JAVA_HOME is set to an invalid directory

I have tried and looked at the past Gradle Java_HOME questions, however none of the options seems to work. I followed this website to install Gradle. However, all the Gradle commands I run result in the following error: ERROR: JAVA_HOME is set to an…
T-K
  • 63
  • 1
  • 1
  • 4
5
votes
1 answer

How to install gradle and gradlew?

I'm having a problem installing gradlew... I can use the gradle command by simply typing "gradle" in the Terminal, but "gradlew" doesn't do anything. I installed gradle using sudo apt install gradle And it installed successfully. I have to use…
CottonTheButton
  • 415
  • 1
  • 6
  • 15
4
votes
1 answer

Gradle compiling slows down my computer

The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS. Here's the specs of my laptop: Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD And when gradle is compiling, my entire system slows to a crawl, videos begin…
nubela
  • 227
  • 4
  • 9
3
votes
0 answers

How to fix Android Studio installation and Gradle errors?

I have installed Android Studio with the idea of developing applications with Cordova and Phonegap thanks to the help of my partner @karel who showed me this question: How to install Android Studio on Ubuntu? I followed the instructions exactly, but…
Miguel Espeso
  • 775
  • 2
  • 9
  • 25
3
votes
1 answer

Command 'gradle' not found. How can I run the gradle command from any directory?

I am trying to learn gradle build. I followed these instructions on gradle.org. To verify it i am issuing command. gradle -v I get this output: Command 'gradle' not found, but can be installed with: sudo apt install gradle But after issuing this…
Jeeva
  • 155
  • 1
  • 2
  • 8
2
votes
2 answers

Why is $HOME being set incorrectly

I'm stuck in a login loop because: My $HOME variable is being set incorrectly when I login. I logged into a shell via ttty1 and echo $HOME returned /usr/local/gradle .bashrc or .bash_profile isn't being sourced when I log in. I tried setting env…
pyler
  • 181
  • 1
  • 1
  • 7
2
votes
3 answers

Gradle finds wrong JAVA_HOME even though it's correctly set ubuntu 13.10

I have just installed gradle from the terminal sudo apt-get install gradle After finishing am trying to run the command gradle -v I get the following error ERROR: JAVA_HOME is set to an invalid directory:…
indago
  • 121
  • 1
  • 1
  • 7
2
votes
0 answers

Could not load hsdis-arm.so; library not loadable; PrintAssembly is disabled

I am using a beaglebone black with ubuntu bionic(armv7hf) and I'm trying to run: gradle However, I am getting the following error # # A fatal error has been detected by the Java Runtime Environment: # , tid=19 # # JRE version: OpenJDK Runtime…
1
vote
1 answer

Package is installed and is not detected. (gradle)

I installed gradle by typical way: sudo apt install gradle Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the newest version (3.5-0ubuntu1). 0 to upgrade, 0 to newly install, 0 to…
Daniel
  • 367
  • 4
  • 14
1
vote
0 answers

android studio -gradle build not finishing

I installed android studio for the first time and tried to use windows installed java sdk here but that produced many errors..So i deleted that folder and installed the java sdk for ubuntu from sdk manager but the gradle build is not finishing: I …
anonymous
  • 111
  • 3
1
2 3