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

Gradle can't find package in dependent test project

I'm trying to run ./gradlew build for a nested multi project structure and I'm running into issues that only seem to appear for projects with test source roots. Being new to both java and gradle I'm sure I'm breaking more than one convention, but I…
mrfreester
  • 1,981
  • 2
  • 17
  • 36
0
votes
1 answer

Gradlew build not working

When I'm trying to clean my project with ./gradlew clean it works, but the ./gradlew build won't work. I tried a few repositories, but it can't resolve the Spring dependencies. Here is the build.gradle: apply plugin: 'war' war { baseName =…
julien
  • 624
  • 1
  • 8
  • 17
0
votes
1 answer

gradle - when i execute a task why is the configuration phase being called also

i have two tasks in my gradle file which looks like this: task aExecutionTask << { println 'hello says aExecutionTask, via the execution phase' } task aConfigurationTask{ println 'hello says aConfigurationTask, via the…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
0
votes
3 answers

Gradle: get only task names

For the purposes of build automation I need to be able to execute a number of gradle tasks matching a given pattern, process the assembled result, clean up a bit, and then do another task in a list. To that end i need to get all the task names and…
Ibolit
  • 9,218
  • 7
  • 52
  • 96
0
votes
1 answer

LibGDX tools.jar missing

One day ago I created a new LibGDX project. All worked fine and I could also export the HTML files to test my project on a server. I have used gradlew.bat html:superDev for debug and gradlew html:dist to export the project. But today when I try to…
ComanderKai77
  • 460
  • 6
  • 14
0
votes
3 answers

Intelij: "Files commited" but not showing in Github?

I have built my Project using "gradlew build idea" I linked my project to GitHub and performed my initial commit using the instructions on the Website. However when I commit changes from my change lists it says "files commited" yet when I check my…
java123999
  • 6,974
  • 36
  • 77
  • 121
0
votes
1 answer

artifactoryPublish task is looking for default zip file of distribution plugin

I upgraded my enviornment from gradle 1.12 to gradle 2.10 & java7 to java8.After upgrading my environment all of sudden one task of my build.gradle is not working artifactoryPublish.I am using distrobution plugin to create a custom zip files.Below…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
5 answers

Android Studio Gradle build error :app:mergeDebugResources, Crunching Cruncher loader.png failed

I am trying to integrate Google Signin in my Android App. I am facing issue with building apk when I include Google Services Dependencies. Below are my gradle files and error log. The google services lib is also prompting me to use gradle-wrapper…
Sumit
  • 401
  • 2
  • 6
  • 21
0
votes
1 answer

:app:compileDebugUnitTestJavaWithJavac FAILED Android Studio

I have searched to a good degree on stack overflow etc to try find an answer to my question. I have so far been unable to find any solution that works for my specific problem. Up until the 5th of February, When I ran the command: .\gradlew test The…
barryto
  • 11
  • 5
0
votes
2 answers

gradlew decompliation error

I wanted to de-compile forge src, but when I typed in the command, it gave me an error. What does it mean and how can I fix it? Last login: Sat Feb 6 20:59:20 on ttys000 Quangs-MacBook-Pro:~ quangnguyen200415$ bash …
user5684207
0
votes
1 answer

Failed executing gradlew using PHP exec through browser

I want to run gradlew using PHP. What i have tried is using exec(), shell_exec, or passthru. I executed those commands inside a PHP script named "build.php". I tried calling the script from a browser or curl and got this error Exception in thread…
M Rijalul Kahfi
  • 1,460
  • 3
  • 22
  • 42
0
votes
0 answers

gradle version x is required try editing distributionurl

getting this after downloading gradle 2.10 with android studio 1.5.1. when running gradle form the command line. gradlew complains about not finding tools.jar. changing the plugin to: classpath 'com.android.tools.build:gradle:1.5.0' (from 1.3.1)…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
0
votes
1 answer

React-Native Android Gradlew installDebug results in build failure

I am running a React-Native app but when I try to gradlew installDebug in the android directory I get a build failure. Here is the info I get when I use: gradlew installDebug --info `BUILD FAILED Total time: 1.118 secs Stopped 0 compiler…
0
votes
1 answer

JHipster Run Again But Failed

Yeserday I was creating jhipster and create entity (Author and Book) same as tutorial and run perfectly, but however today I run again (using gradlew bootRun) but the result is blank, the command is run without error, but the page is blank (only…
Imam Baihaqi
  • 175
  • 1
  • 10
0
votes
1 answer

Gradle does not work with spring boot sample app. Why not?

I am using this spring boot tutorial to study spring boot. I followed the steps explicitly, but now gradle is not working. I recall installing gradle in the CentOS 7 devbox in which this is being run. How can I get gradle to launch this sample…
CodeMed
  • 9,527
  • 70
  • 212
  • 364