Questions tagged [gradlew]

gradlew is an executable file created by the gradle wrapper plugin, to replace the normal gradle executable for a project

While the normal Gradle executable comes with the installed version and therefor depends on that version, gradlew downloads the correct version of Gradle (specified in the Gradle build script) and thereby ensures that the build is independent of the installed Gradle version.

One obtains a gradlew executable by applying the Gradle wrapper plugin in the build script, specifying a Gradle version and executing

gradle wrapper

After that gradlew can be used whenever one normally would use Gradle.

Official Gradle website: https://gradle.org/

1210 questions
0
votes
1 answer

Android Library: run tests from command line

Android library doesn't have gradlew file, so how can I run tests from a command line? I need it to integrate my android library with CI. Thanks.
pvllnspk
  • 5,667
  • 12
  • 59
  • 97
0
votes
0 answers

Gradle build error with Intellij

$ java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) $ gradle -version Gradle…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

gradle - global configuraiton for buildscript

Currently, we have a buildscript{} block in all our build.Gradle files which use our custom plugin. Is there a provision to configure buildscript block globally instead of each build.Gradle file? For eg: I have a plugin say "MyPlugin" . This plugin…
lives
  • 1,243
  • 5
  • 25
  • 61
0
votes
1 answer

Uploading a library to maven server

I am assigned a task of building a project using gradle and maven. The project consists of a main module and its supporting modules. The supporting modules must be uploaded to artifact local maven repository as libraries and the main module will…
Ackman
  • 1,562
  • 6
  • 31
  • 54
0
votes
0 answers

How to add a timeout to gradlew command?

I'm executing a .war file that i developed in Java for an Apache Tomcat server. I'm executing gradleW command with these commands: Windows: "cmd /c gradlew.bat assembleRelease --info" OS X & Linux: "./gradlew assembleRelease --info"; The problem is…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
1 answer

Gradle wrapper ignores already installed distribution?

The gradle wrapper distributions are located on my machine under: C:\Users\Ruperto.gradle\wrapper\dists\gradle-2.10-all In this folder I already had 2 folder with long names (78v82fsf226usgvgh7q2ptcvif, a4w5fzrkeut1ox71xslb49gst) and now after…
David
  • 3,971
  • 1
  • 26
  • 65
0
votes
2 answers

React-native Getting error when running - cd android && ./gradlew assembleRelease

The app works perfectly with the emulator when I run react-native run android but when I try generating the apk it shows the following error Don't know what the problem is It works flawlessly in the emulator
Ronak Khandelwal
  • 301
  • 2
  • 16
0
votes
2 answers

Gradle under Docker - Could not open cp_proj remapped class cache

I've installed Jenkins 2.6 as a docker container on a Windows 2012 Server machine. I have created a project that checks out a project from git. I've configured a build step that does a build using gradle wrapper 2.13 The gradle command fails…
Greg Pagendam-Turner
  • 2,356
  • 5
  • 32
  • 49
0
votes
0 answers

.gradle folder in project

Using gradlew with gradle 2.13. So I noticed that there is a .gradle folder in both my project and my home folder. For some reason, having the project .gradle folder is causing an odd issue with my build. I have a complicated gradle build script…
Bob
  • 8,424
  • 17
  • 72
  • 110
0
votes
0 answers

Task 'run' not found in root project 'myProject'

I am trying to integrate gcm. I have applied code and done all things instructed at https://developers.google.com/cloud-messaging/android/start. But when I run below code in terminal, .\gradlew.bat run -Pmsg="" it gives FAILURE: Build failed…
Tushar Sheth
  • 391
  • 4
  • 18
0
votes
1 answer

Issue with building gradle project

I am building a JAVA project with gradle but each time I am getting following error: FAILURE: Build failed with an exception. * Where: Build file '/data/project1/build.gradle' line: 3 * What went wrong: A problem occurred evaluating root project…
Joy
  • 4,197
  • 14
  • 61
  • 131
0
votes
1 answer

Android Studio not recognizing gradle 2.10

This question is kind of two fold, I am trying to update my google app engine backend and i keep getting this error: :contentbackend:appengineUpdate Please enter code: Encountered a problem: No line found I was reading around and saw people saying…
Nicholas Pesa
  • 2,156
  • 2
  • 24
  • 45
0
votes
1 answer

Package path for okhttp3.OkHttpClient or com.squareup.okhttp.OkHttpClient

I'm building Google Maps API jar following GitHub directions : ./gradlew jar But when creating context: GeoApiContext context = new GeoApiContext().setApiKey("....") I'm getting a runtime exception: java.lang.ClassNotFoundException:…
Scott Mayers
  • 437
  • 6
  • 18
0
votes
1 answer

gradlew.bat (and gradlew) SSLHandShakeException on wrappers but not on installed gradle

Downloading https://services.gradle.org/distributions/gradle-2.12-bin.zip Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:…
niken
  • 2,499
  • 3
  • 33
  • 56
0
votes
0 answers

gradle error on snapshot phase

Hi i have got very strange error. First of all i build my project using the same command on linux (lubuntu x64) without any problem. But when i try build my project on redhat (aws) i have got error. This is my stacktrace: 17:19:45.313 [DEBUG]…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51