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

WARN SparkContext: Another SparkContext is being constructed (or threw an exception in its constructor)

I have a two integration tests for my DataFrame transformation code (using https://github.com/holdenk/spark-testing-base ) and they all run fine when run individually in IntelliJ. However, when I run my gradle build, for the first test I see the…
nemo
  • 1,504
  • 3
  • 21
  • 41
0
votes
0 answers

Unable to download plugins from gradle

Hi I have installed gradle in my windows 7 machine . I need to download some plugins.I am under corporate network, so I set my proxy settings and also installed some certificates on JDK. My build.gradle file looks like this.. plugins { id…
aravind
  • 978
  • 3
  • 12
  • 21
0
votes
1 answer

Application property value from build.gradle file

I have a spring-boot application and run it with gradle. In my build.gradle I wrote def buildPort task calculateServerPort { def os = new ByteArrayOutputStream() javaexec { classpath = sourceSets.main.runtimeClasspath main…
Dmitry
  • 73
  • 2
  • 11
0
votes
2 answers

How can I run single groovy class file independently in gradle?

I have 2 groovy class files under one rootProject. I want to run just one of them without running the other one. How can I do that using intellij command line and command prompt. Right now when I run the rootProject both files run one after the…
RV_Dev
  • 435
  • 1
  • 7
  • 21
0
votes
1 answer

Received status code 403 from server: VirusFound

Sonatype Nexus version 3.2.1-01 Multiple developers experiencing a problem downloading a file from Nexus during a gradlew build. Below is the error encountered. I am able to download the file via curl or wget without error. Any ideas what the…
jstanley
  • 2,087
  • 15
  • 22
0
votes
1 answer

Apereo CAS 4.1.0 - Gradle Build Failing With INVALID_TICKET Message

I am new to the CAS and gradle both. I downloaded the CAS code from here. After extracting the downloaded zip, I ran gradlew.bat file to build the CAS project. Even if I have not modified anything, I get below error during the…
Yogesh Ralebhat
  • 1,376
  • 1
  • 13
  • 29
0
votes
1 answer

Play compile in Android Studio result more optimized APK than `./gradlew app:assembleProductionRelease`

When I compile in Android Studio using the play button, i.e. it will Executing tasks: [:app:assembleProductionRelease], I got an APK with size that is smaller than when I run on command line ./gradlew app:assembleProductionRelease. Upon…
Elye
  • 53,639
  • 54
  • 212
  • 474
0
votes
1 answer

How install and run Android app on device by gradle task?

Gradle 2.14 android { dev { } } task runAppDev(type: Exec, dependsOn: 'installDev') { description "Install and run app (dev env)" android.applicationVariants.all { variant -> if…
Alexei
  • 14,350
  • 37
  • 121
  • 240
0
votes
1 answer

Gradle copy task not finding source files when leftShift (<<) operator used

I have the following gradle task in a subproject's build.gradle file to copy file.txt from a directory called from_dir/ to a directory to_dir/ and rename it to fileRenamed.txt: task copyRenameFile(type: Copy) { System.out.println("copyRenameFile…
CFL_Jeff
  • 2,589
  • 3
  • 31
  • 49
0
votes
0 answers

Can not get gradle wrapper download the gradle distribution from local server

I have created a simple local file server with Tomcat 8 and stored the distributions of the gradle. I planned to use the gradle wrapper to download the gradle from the local file server, because it is slow to download from the official site here. I…
0
votes
1 answer

Exclude duplicate entry on two aar Android

I have used 2 third party aar dependencies in my Android Project and they both are using same Encoding Library called org.spongycastle.util. But problem here is when i compiled it it shows an Error on Gradle Error:Execution failed for task…
WinHtaikAung
  • 414
  • 2
  • 11
0
votes
1 answer

Adding values into war file to yml file from values stored in a .properties file that are stored locally in gradle

I am trying to initialize my dataSource with the help of gradle however gradle is not putting the values into my yml that is stored in a .properties on my machine i.e ~/.gradle and I made a .properties file at that location. In Gradle I made a…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
0
votes
1 answer

NDK problems with ndkBuild (gradlew excution)

Salut, I am struggling with this project https://github.com/ibrdtn/ibrdtn/wiki/Build-IBR-DTN-for-Android. I have Android Studio 2.2.2, JRE 1.8.0 I set export PATH=$PATH:/opt/android-ndk-r13b in ~/.bashrc and changed local.properties to following…
malocho
  • 265
  • 3
  • 13
0
votes
1 answer

Gradle Multi-Project Setup with Dependencies -> Could not resolve all dependencies

I've got a small multi-project setup with gradle (also new to it), but it doesn't compile. I can run it inside of the IDE, but when I want to compile it, it fails. When I then try to use one of the dependencies from the Engine project in the Game…
ShadowDragon
  • 2,238
  • 5
  • 20
  • 32
0
votes
0 answers

Android Studio / Gradle 2.2.0 building old sources?

I've a problem building my app in Android Studio. It is just a small app (about 35 classes) with now modules and with only a few library dependencies. But Android Studio or Gradle often seems to build old sources. For example now I added a simple…
unlimited101
  • 3,653
  • 4
  • 22
  • 41