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
0 answers

Customizing gradlew

Is there a way to customize gradlew? What I want is that when someone runs gradlew then it will run gradle with additional args, e.g. ./gradlew should in practice call gradle --init-script "../../my_init_script.gradle"
LK__
  • 6,515
  • 5
  • 34
  • 53
0
votes
1 answer

Gradle Wrapper 1.11 vs 2.3?

I'm following Building a RESTful Web Service -- and was wondering why the gradle wrapper version was 1.11 instead of 2.3? I tried 2.3 and it worked. Is there a downside to using 2.3 instead of the suggested 1.11?
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
0
votes
1 answer

gradle-wrapper.properties file from url?

I want to able fetch gradle-wrapper.properties from another url, or any setting from other url. for example, in gradle itself i can fetch setting from another url by simply apply from: "https://my.url.com" can i do the same for…
Tal
  • 1,145
  • 2
  • 14
  • 32
0
votes
2 answers

How to know which plugin is adding the "run" task in gradle

I have a gradle-based project that doesn't implement the "application" plugin, but somehow the "run" task runs perfectly when i just write on the console ./gradlew run I've been looking among the plugins and I can't find which one is adding the…
fortellao
  • 523
  • 4
  • 4
0
votes
2 answers

How to make debug apk with gradlew?

I have been trying to make a debug apk with gradlew but whatever I seem to do it keeps failing the build. Here is my cmd log if it helps: C:\Users\svond_000\Downloads\dalvik-sdk-8u40-ea3\dalviksdk\samples\HelloWorld\javafx>gradlew.bat…
sazzy4o
  • 3,073
  • 6
  • 34
  • 62
0
votes
0 answers

How to specific the builds ./gradlew test will build

Say I have 2 different builds in my build.gradle buildTypes (debug, release). When I run the ./gradlew test command, both of those builds will be built and tested. How do I specify that I only want the 'debug' build to build and test when I run…
Caren
  • 1,358
  • 2
  • 13
  • 22
0
votes
1 answer

gradlew command line - ignore devices

I have a machine we are using for automated builds on our android application while its in development. That machine is connected to multiple android devices which need to stay connected for other purposes outside the scope of this project. That…
erik
  • 4,946
  • 13
  • 70
  • 120
0
votes
2 answers

Robolectric 2.4 and android.util.Log

How can I show the Log.d() output made in the application code when testing with Robolectric? Currently I use version 2.4.
user2368140
0
votes
1 answer

LibGDX Dependencies

I am attempting to set up LibGDX on a computer at school for CompSci. The version of the Gradle setup .jar is 1.4.1 The root folder is usually located in the C Drive The school's network has administrator problems which may lead to problems The…
user4133427
0
votes
2 answers

No gradlew script for sub-modules?

We recently started to migrate from a very old monolithic ant build to gradle. During the setup I realized that the gradle wrapper task only provides a gradlew script for the root project but not for the sub-modules. Is there a way to also provide…
u6f6o
  • 2,050
  • 3
  • 29
  • 54
0
votes
1 answer

Android Studio 0.8.7: Error:Cause: error in opening zip file

I'm attempting to import a new gradle Android project with AS 0.8.6 (have also tried 0.8.7). When importing I get the following error Error:Cause: error in opening zip file From my research, this is very likely a problem with downloading the gradle…
loeschg
  • 29,961
  • 26
  • 97
  • 150
0
votes
1 answer

€ sign in method name fails test case using Gradle

I am using windows 8 as operating system. I have a test method in Robolectric which has € in method name. When I run the test using Gradle wrapper in Android studio with gradlew test command, it is showing me following error: error: illegal…
Ali
  • 9,800
  • 19
  • 72
  • 152
0
votes
1 answer

Gradlew Android Studio NoClassDefFoundError: org/gradle/cli/CommandLineParser

When I try to run gradlew from the command line in Android Studio, I keep getting the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/gradle/cli/CommandLineParser at…
thd
  • 2,380
  • 1
  • 25
  • 33
0
votes
1 answer

How can I install Forge into Eclipse using CMD?

This is what I did: Shift + Right Click in the forge folder Clicked "open command window here" Typed in "gradlew setupDecompWorkspace eclipse" Once it's done there's an error message that says: you are running the setupDecompWorkspace task…
lllendexll
  • 81
  • 1
  • 1
  • 3
0
votes
0 answers

why gradle configuring projects every time

I am try to run libgdx project created by the setup. And as documentation when I run command ./gradlew desktop:dist or gradle. Tt try to configure and resolve dependency every time. nets$ ./gradlew desktop:dist :core:compileJava…
Natwar Singh
  • 2,197
  • 4
  • 26
  • 42