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

Unable to generate Gradle files

I have imported a project from GitHub into Android Studio, however there is not a gradlew nor gradle.bat file. I read about how I could generate them from questions like this one, so I ran the following command in the terminal: gradle…
0
votes
2 answers

Tomcat not booting up Gradle Webapp

I have a Gradle webapp having plugin war and jetty defined in build.gradle, as follows: apply plugin: 'java' apply plugin: 'war' apply plugin: 'jetty' group = 'com.company' sourceCompatibility = 1.8 targetCompatibility = 1.8 version =…
Arpit Aggarwal
  • 27,626
  • 16
  • 90
  • 108
0
votes
0 answers

Gradle behind proxy with no Authentication

I am running gradle (version 2.5) behind a proxy server which does not require authentication. I have set the following in gradle.properties systemProp.http.proxyHost=rilproxy.in.ril.com systemProp.http.proxyPort=8080 However I am getting the…
Sandeep Nair
  • 3,630
  • 3
  • 26
  • 38
0
votes
1 answer

How to let gradlew.bat automatically run tasks?

I was wondering if it is possible to tell the gradlew.bat of the Gradle Wrapper to automatically run tasks like "test" or "jacocoTestReport". I tried doing that by putting lines like "gradle test" in the execute area of the gradlew.bat. It told me…
Quatsch
  • 361
  • 1
  • 8
  • 29
0
votes
0 answers

Gradle refuses to sync with Android Project in IDEA 15

I started a new Gradle-based Android project in IDEA CE 15, running the latest version of the Android plugin (10.1.3.0) on XUbuntu. However, whenever I try to sync the project with gradle from IDEA, I get a "project sync failed" error, and I can't…
0
votes
1 answer

Gradle fails to list DocumentRevisions folder on Mac using Wuff plugin for Eclipse

One of my builds is failing because Gradle is trying to list the contents of my /.DocumentRevisions-V100 which only has execute permissions (not read nor write). The strange thing is that I have no reference to this folder in my build.gradle nor…
Paul Podgorsek
  • 2,416
  • 3
  • 19
  • 22
0
votes
1 answer

How to configure gradle wrapper

I am very new to gradle, i am trying to learn now. I was successfully able to configure gradle to a very simple project. Currently i am trying to learn gradle wrapper. What it specifies is that i do not need to download gradle on my system. I can…
Ambuj Jauhari
  • 1,187
  • 4
  • 26
  • 46
0
votes
1 answer

Using Gradle plugin to delete files and folders

I'm using this plugin for my Gradle: https://gradle-ssh-plugin.github.io/ I've added a new task called delete which is supposed to delete certain folders and files. So I wrote the following: task delete { ssh.run { session(remotes.web01)…
sparkhee93
  • 1,381
  • 3
  • 21
  • 30
0
votes
1 answer

Add Gradle cache to Sonatype Nexus

Is there an option available to add the Gradle dependency cache to Sonatype Nexus repository so that i can use that cached dependencies for my project later.
Sandeep K Nair
  • 2,512
  • 26
  • 26
0
votes
0 answers

Gradle [Failed to create parent directory ... when creating directory ...] when trying to copy files

I'm trying to copy some files into a specific folder that's located in a network server that requires for me to enter a username and password. I found this and I'm currently trying to get it to work but I'm stuck. I added site onto my build.gradle…
sparkhee93
  • 1,381
  • 3
  • 21
  • 30
0
votes
1 answer

Gradle wrapper gives error "Could not create plugin of type 'AppPlugin'"

I've created a new project and changed nothing. When I try to execute a Gradle task with the Gradle Wrapper in that project, I get the following error: What went wrong: A problem occurred evaluating project ':app'. Could not create plugin of type…
Rule
  • 629
  • 1
  • 9
  • 19
0
votes
1 answer

Android Buildtools 23.x.x wont compile

My application works fine with buildtools 22.x.x, but when I upgrade to 23.x.x and I try to compile I get this error: Error:Execution failed for task ':appName:compileStagingDebugAndroidTestAidl'. > aidl is missing I tried running the task from the…
Jack
  • 171
  • 2
  • 16
0
votes
1 answer

Gradle sync not auto-resolve Android library project dependencies with @aar annotation

I've created an Android library project found here: https://github.com/dbotha/Android-Photo-Picker The photo-picker library project itself has several dependencies of it's own: // library build.gradle dependencies { compile…
dbotha
  • 1,501
  • 4
  • 20
  • 38
0
votes
2 answers

Problems using Gradle console command (gradlew)

I'm compiling a project with gradlew command in console and i'm getting this error: BUILD FAILED Total time: 16.775 secs Err: Err:FAILURE: Build failed with an exception. Err: Err:* What went wrong: Err:A problem occurred configuring project…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
0 answers

How to sign .apk file using Java swing application

I have a Java Swing application that allows the user to select multiple .apk files to be signed with the same key. I tried to use ProcessBuilder to use the signapk.jar to sign but not luck. Any ideas? I can provide more details if needed.