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

Override file in Gradle build dependency jar

I would like to output a jar which internally contains my dependency jar but overrides a particular file in the dependency jar with my own. I am using gradle build. Can someone help me with this? The task which build jar for me: jar { …
0
votes
2 answers

How can I create a custom builtType in gradle for android?

I want to create a buildTask that I can use as "gradlew someTask" from the terminal. I basically want to do a few things before I run the build ( like changing versionCode and versionName ). I've tried a few…
hello_world
  • 778
  • 1
  • 10
  • 26
0
votes
0 answers

Download all dependencies rather than the latest version only in gradle

I am trying to fetch all the version of single dependency from the artifactory through my gradle script.The issue is gradle only fetch the latest version of the dependency and that is causing an issue with my applcation.whereas I am able to do the…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
1 answer

Copy the file from default workdir to target location is not working

I am trying to write a gradle task to copy the file from one location to the target folder but it is not doing anything and showung Up-to-Date.Can someone let me know what am I doing wrong here.I can see the file is avilable in…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
1 answer

libgdx's gradlew doesn't work in Fedora

So I tried to create a libgdx project with libgdx-setup: ./gradlew desktop:run And I got the following output: Configuration on demand is an incubating feature. :core:compileJava FAILURE: Build failed with an exception. * What went…
heo
  • 116
  • 11
0
votes
2 answers

How to set proxy url with gradle

I would like to know how to set the proxy url with gradle build system. My proxy url is of the form http://host/proxy.pac
Ranjith
  • 53
  • 1
  • 7
0
votes
0 answers

gradle command line, no details on build failure

I started recently on Android and after losing my patience with build times on Android Studio, decided to try command line option(initial reading on internet indicated 50% reduction in time required). I was able to install apk to the device and even…
user_v
  • 9,628
  • 4
  • 40
  • 32
0
votes
1 answer

Fail to launch the Ipad simulator with Gradle

After updating to Yosemite OSX 10, and to the latest Xcode 6, I ran the following command line to launch the iPad simulator as expected. ./gradlew launchIPadSimulator Unfortunately, it still does not work and I get a: * Exception…
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101
0
votes
1 answer

How to remove the duplication of dependency in gradle?

I am using the dependency section in my gradle script but I think I am crearting the duplication of the dependency in my script.I need the dependency during compilation time as well as during runtime.Do I need to define the dependency as a compile…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
2 answers

SSH through gradle script

I am working on gradle script and I have one plugin which automatically download the zip,jar and war file from artifactory after that I need to do ssh to the remote server and move that zip file to particaular location. I am trying to do in the…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
1 answer

Add Classpath in Manifest file of jar in gradle

Below is my gradle script and I need to add the data in MANIFEST.MF of jar file in below format I tried the below method but not able to achieve it. i need it in below way. I am using the gradle 2.3 apply plugin: 'java' sourceCompatibility…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
1 answer

Grade Build Failed on remote server (codeship CI)

my app is building normally under Android Studio (gradle) but fails to compile when I use it on cloud server (Codeship Continious Integration). I start "gradlew assembleRelease" and get this below (do not even get what is the error…
Arnie Schwarzvogel
  • 955
  • 1
  • 13
  • 25
0
votes
2 answers

Rename the filename in build.gradle with version

I am working on one gradle script where I need to rename the artifact name at the end but I am facing an issue my code is below.Version is coming from the version.properties file and I am able to read it properly in build.gradle script but while I…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
1 answer

Continue build with lint warnings

I have a build.gradle file for an android project.It says android { lintOptions { quiet false abortOnError true ignoreWarnings true } ... } My requirement is like it should get aborted only if there are errors. If warnings are…
Nevin Raj Victor
  • 2,924
  • 3
  • 23
  • 37
0
votes
1 answer

How to make the zip file with particular directories in gradle

I am working on one gradle script where I need to create the zip file.Below are my contents in the workspace but I need few folder inside the zip file and the zip file should be create with name application-data-1.0.zip.I need only three folder…
unknown
  • 1,815
  • 3
  • 26
  • 51