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 String index out of range: 0

I'm documenting the Problem I had here as I was looking for the solution for quite a while before finding it. I hope it helps someone else as well... I had the problem that whenever I executed any gradle task with Gradle 2.14.x i got the Exception…
Olivier
  • 160
  • 2
  • 11
0
votes
0 answers

Gradle cannot resolve dependency for spring framework uaa client?

I have just started using gradle, and facing same issue in multiple gradle projects. The dependency for 'org.springframework.uaa.client:1.0.1.RELEASE' is not resolved. I checked and the repository used, contains the given artifact but still gradle…
shashi009
  • 720
  • 6
  • 23
0
votes
1 answer

gradle wrapper fails for Spring Boot application on Java 8, Gradle 3: can't find cacerts

I have encountered a problem when creating my gradlew file using the gradle wrapper command. My setup is simple: Ubuntu 14.04 + Java 8 (openjdk version "1.8.0_91") + Gradle 3.0 tutorials…
AHL
  • 738
  • 3
  • 11
  • 35
0
votes
1 answer

OFBiz task 'build' not found in root project 'ofbiz-release15.12'

> ➜ ofbiz-release15.12 ./gradlew build --debug 07:49:47.388 [INFO] [org.gradle.BuildLogger] Starting Build 07:49:47.411 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/qk/.gradle 07:49:47.415 [DEBUG] [org.gradle.BuildLogger] Current…
Derek
  • 1,177
  • 3
  • 11
  • 26
0
votes
1 answer

Ionic (+cordova,android.sdk,gradlew) Execution failed for task

(my problem was related to ionic, and it is common problem here, it is caused by using cordova and android.sdk, so I am adding these flags too) I had problem running [ionic run android [-lc], ionic build android] (if you got it in ios or other…
Daniel Mizerski
  • 1,123
  • 1
  • 8
  • 24
0
votes
1 answer

Blu R1 HD Phone - Android Failed to install: Unknown failure ([CDS]close[0])

Among all the android devices I use in the device farm lab, the Blu R1 HD always crashes when I do ./gradlew cDDAT Min api 16 and max api is 25. Log: Installing APK 'app-qa-debug.apk' on 'BLU Advance 5.0 - 5.1' for app:qaDebug 10:02:53…
0
votes
0 answers

NoClassDefFoundError in building gradle project

So, it really consumed a lot of my time. I am trying to build a project (using gradle) that is using these jar 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2' 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.1' Content of…
LifeIsButifool
  • 129
  • 2
  • 12
0
votes
1 answer

Target specific package when running Grails integration tests using Gradle

I can target a specific package with the grails command: grails test-app com.mypackage.* -integration How to do the same using Gradle wrapper? Tried ./gradlew integrationTest com.mypackage.*, but no luck. (Grails 3.1.10, Gradle wrapper 2.13)
rlovtang
  • 4,860
  • 2
  • 30
  • 30
0
votes
1 answer

Gradlew doesn't add dependencies to my external libraries(class path) in IDEA 16.2

tl;dr; adding adding dependencies to build.gradle downloads it fine but doesn't add it to the classpath/external libraries in idea. Hi guys Im new to developing webapps in java, and im trying to depend on a few jars on mvnrepository.com, the only…
DenLilleMand
  • 3,732
  • 5
  • 25
  • 34
0
votes
0 answers

./gradlew build Unable to Resolve Dependencies

I'm working on a git project (I cloned it using SourceTree) that uses a gradle wrapper for building, testing By the way, I was told I had to change the names of a bunch of the projects, dependencies etc. to be allowed to ask the question, so sorry…
dram
  • 97
  • 1
  • 8
0
votes
0 answers

How can I clone a repo from GitHub using gradle?

I have a project which depends on other repos. My goal is to write a gradle task that clones the required repos automatically. The problem I am having is that when I run my task, gradlew fails because it tries to compile the project dependencies…
user3670466
  • 13
  • 1
  • 5
0
votes
1 answer

Game maker android Build - Gradlew

I set up my phone and the environment to develop for Android and tested everything in Android Studio perfectly. I created an app on Game Maker: Studio and pressinei F5 only when the project is to be executed in Gradlew the error occurs:…
Jroger
  • 259
  • 3
  • 17
0
votes
1 answer

Android - directory for running tests on the command line

I know how to run tests from Android Studio and it's work, and I want to learn how to use command line. From guide for Espresso link: "Note: You can also run the tests on the command line using: ./gradlew connectedDebugAndroidTest" Should I use…
Polurival
  • 58
  • 1
  • 9
0
votes
1 answer

How to move code from gradle task configuration step to task execution

I have gradle task: task immportMyData(type: Exec) { def dumnp= "" new File("${System.env.MY_HOME}/export").eachDir() { dir -> dumpName = dir.getName() } workingDir "${System.env.MY_HOME}/../test" standardOutput = new ByteArrayOutputStream() …
Java Dude
  • 454
  • 6
  • 24
0
votes
1 answer

Android Library & CI

I want to run tests in my android library project from Gitlab CI: My .gitlab-ci.yml file: before_script: - export ANDROID_HOME="/opt/android-sdk" - export GRADLE_HOME="/opt/gradle" - export PATH="/opt/gradle/bin:$PATH" - export…