Questions tagged [gradlew]

1

votes
1

answer
927

Views

JVM space exhausted when building a project through gradle

Receiving error message when building a project through gradle Expiring Daemon because JVM Tenured space is exhausted
Rob Blinsinger
1

votes
0

answer
266

Views

APK build failed with gradlew.bat assembleDebug command throught Jenkins

As a newbie with JENKINS, I'm starting with building a debug version apk of a simple HelloWorld android project. Running the 'gradlew.bat assembleDebug' on the local project folder works fine and I'm getting the .apk.But when it comes to Jenkins the build fails. JENKINS configuration is of the follo...
kingabdr
1

votes
0

answer
239

Views

How to start embedded ActiveMQ broker through gradle

I am writing integration test and i want to connect activeMQ broker. So far the strategy I am using ActiveMQ broker in gradle as dependency compile 'org.apache.activemq:activemq-broker:5.14.5' And In my configuration.xml file I am using vm://localhost?broker.persistent=false ${active.mq.username} ${...
ronypatil
1

votes
0

answer
225

Views

OpenJDK 9 SSL error with gradlew

I recently upgraded to OpenJDK 9 but am now encountering errors with CI build. Exception in thread 'main' javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty I tried to symlinking /...
forestgreen
1

votes
1

answer
56

Views

Bintray upload failing, unable to find class R

I have made an android library by following this. Everything worked perfectly fine and I was able to upload my library to jcenter, also my library internally uses one java jar as dependecy. Now I have made some improvements and wants to update my library but when I run the command gradlew clean bu...
Sunny
1

votes
0

answer
151

Views

Build apk using python script

I am trying to create an android application using a different debug mode. DebugMode.java public class DebugMode { // ------------------------------ // Define // ------------------------------ public static final boolean isStagingServer = true; public static final boolean isTestServer = false; publi...
dotGitignore
1

votes
1

answer
366

Views

provide apk path to gradle assembleRelease crashlyticsUploadDistributionRelease

I am trying to do Beta distributions with Gradle. The following command should do, mentioned here. gradle assembleRelease crashlyticsUploadDistributionRelease But my signed apk is not in default folder app/build/outputs/apk/release/. This is placed in some other folder, let's say /deploy/apk/. How t...
Annada
1

votes
0

answer
55

Views

Gradle keeps moving project outside of parent

I am seeing some odd behavior with Gradle. Everytime I sync Gradle with Intellij it shows a 'mirrored' copy of the project outside of the parent project with certain dependency cache hashes. Apologies for the redaction, but as you can see, the subproject 'service' gets moved outside of the parent pr...
hitch.united
1

votes
0

answer
355

Views

I am getting this error when try to build the apk through Android studio

I am getting this error when try to build the apk through Android studio.Whereas there is no such error when i do build through command window using command ./gradlew assembleRelease assembleReleaseUnsigned FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':My_Se...
Sangamesh Itagi
1

votes
1

answer
402

Views

Android Studio 3.1 Build Fails with ClassNotFoundException

I am experiencing this error when building my project after Android Studio (AS) update to version 3.1: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':MyModule:transformClassesWithProfilers-transformForDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExec...
andrfog
1

votes
2

answer
267

Views

Overriding spring application.properties via command line

I was trying to change my.url=test.com in the application.properties from the command line while running gradlew gradlew test -Drun.arguments='--my.url=myurl.com''. Can someone tell me what I am doing wrong? Thanks in advance for your assistance!
dab
1

votes
1

answer
119

Views

Where are gradle tasks defined

I have a gradle project. When I type 'gradlew tasks' i see a bunch of tasks. Where are these tasks? How do i see where they are defined?
bharal
1

votes
0

answer
296

Views

Elasticsearch 6.2 (java/gradle) integration test

I am spending days trying to find solution what to use for this 'simple' test: inside of test stand up ES node that will be used for test only connect with transport client to that ES instance and add new index. (that is just a start of all integration tests, but I need to see how to do one if an...
goCroatia
1

votes
0

answer
915

Views

npm rebuild node-sass still yields “Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (59)”

I am getting the error: Module build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (59) which, usually, can be mitigated by Delete package-lock.json and node_modules Run npm install Run npm rebuild node-sass However, I'm still getting...
Dakota Maker
1

votes
0

answer
238

Views

Gradle - Could not find method wrapper() - dependant projects

My project structure looks like bellow: -Main dir - .gradle-wrapper | - gradle-wrapper.jar | - gradle-wrapper.properties | - projects - library - library-consumer Inside library and library-consumer I have both build.gradle with: wrapper { jarFile = '${project.projectDir}/../../.gradle-wrapper/gra...
Witold Kupś
1

votes
0

answer
83

Views

Running gradlew lint on specific file(s)

I'm trying to create pre-commit hook with code style check and other errors. It's a multi-module project in Android Studio (java and kotlin). I was hoping to use lint, but no luck. My condition is to check only new and modified files (baseline is in order ofc) as the project is way too big to run ch...
Majkeee
1

votes
1

answer
116

Views

Error when generate Gradle Wrapper files

I have a react native project in ubuntu, and I want to generate Gradle Wrapper files so I install gradle and in android/app I have run this command gradle wrapper --gradle-version 3.4.1 But when I run this command, I got this error FAILURE: Build failed with an exception. * Where: Build file '/var/M...
Amjed Omar
1

votes
1

answer
212

Views

gradlew change jcenter() URL for React Native build

I trying to build a React Native application for android but in my enterprise, external repositories are blocked (external network not allowed). So we use an internal maven repository to get artifacts. But I encountered some problems to build a react native application because the project with node...
Aure77
1

votes
1

answer
89

Views

Gradle pass dynamic value as system property to method

I have a gradle project that has a calculated variable I need to pass into an application. When i attempt to do this is passes a null value, not the set value I want. I have the below example file that demonstrates the issue to run just do gradle foo I want both lines of output to be 4. def String...
ken
1

votes
2

answer
411

Views

How to populate Gradle cache in a Docker image?

I'm trying to build a Docker image for developing an Android app. I have an image that installs the JDK, Android SDK + NDK. When I run the image and run the gradle wrapper (gradlew), the wrapper downloads the latest Gradle, and then all the dependencies of my app, so I see messages like: Download ht...
jazzdelightsme
1

votes
0

answer
107

Views

I'm build jhipster project through Gradle, first time project run fine but second time throws exception?

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]: Constructor threw exception; nested exception is com.github.vanroy.springdata.jest.exception.JestElasticsearchException: Cannot ex...
Manu Singh
1

votes
0

answer
48

Views

Permission issues when changing path of files in Grade Copy Task

Wasn't really sure where best to ask this so, though the best place was here! I have an issue with a Gradle Copy Task where I am unzipping a zip and then modifying the file paths to remove the root folder in the zip. This was a recommended workflow because the feature to elect certain sub-directorie...
Robert Rogers
1

votes
0

answer
28

Views

How do you get compile time SDK compatibility warnings from Gradle?

Was recently doing a project and mid-way we had to lower the minimum supported SDK supported in the Android manifest. Some Android API's we use are not compatible the new lower minimum SDK. We only discovered these as run time crashes. Why wouldn't the Gradle and/or the Android IDE pick up these as...
angryITguy
1

votes
1

answer
86

Views

Exception while deploying nodes locally on a CorDapp - node-info generation

I'm trying to run the sample cordapp described here The problem is that I am unable to deploy the nodes when I run the gradlew.bat deployNodes command. I'm repeatedly getting the following error: Node in Notary exited with 1 when generating its node-info - see logs Some information about my environm...
Varun Sharma
1

votes
0

answer
158

Views

gradlew assembleDebug failing when building apk with buildozer

I am trying to build a signed apk using buildozer on a virtual machine which is running on windows 10 but I am getting this error: [INFO]: Selecting java build tool: [INFO]: Detected highest available build tools version to be 28.0.3 [INFO]: Building with gradle, as gradle executable is...
SABIRASMASY
1

votes
2

answer
135

Views

Gradle can't find classes in SubProject

I'd like to build MultiProject by Gradle. Flat directories of RootBroject and SubProject. I think it's simple. But Gradle looks like can't find classes in SubProject. How can I do that in this case? Project dirs are like: RootProject +- build.gradle +- settings.gradle +- src SubProject +- src +- bu...
isexxx
1

votes
1

answer
25

Views

Locating jar from gradle build in Mac

I am fairly new with Mac. I am trying to build a jar file for my spring boot project. I ran ./gradlew on terminal. Now I am unsure where to find jar. I cant locate build directory in my project structure.
Plasmatiger
1

votes
2

answer
3.3k

Views

Gradle: Build file should not contain a package statement

I have a gradle build project that consists of a buildSrc/build.gradle and a project-level build.gradle. The buildSrc/build.gradle compiles a jar dependency that contains a class the project-level build.gradle needs. However, when the project-level build.gradle tries to instantiate an instance of th...
XDelphiGrl
1

votes
1

answer
1.1k

Views

Excluding a a folder from test runs with TestNG and Gradle

I'm trying to exclude a 'quarantine' folder that I set up for Selenium tests that need to be updated and I do not wish to have run. I know that one solution is to set up and assign test groups for the tests in these classes but given the sheer size and volume of tests that will be in here, I'd rathe...
Darwin Allen
1

votes
1

answer
172

Views

Gradle-built project structure

I see a lot of examples of Gradle-built Java/Groovy projects that have the following structure: some-app/ src/ main/ test/ docs/ README.md build.gradle gradlew gradlew.bat settings.gradle gradle.properties gradle/ *.gradle I understand that build.gradle is the main buildscript and that gradle.proper...
IAmYourFaja
1

votes
1

answer
2.3k

Views

Why does Gradle task block on executing a Python script that spawns a process?

I encountered an issue running a Python script from a Gradle task. Short version Why does a Gradle task that executes a Python script, where the Python scripts spawns a process, seems to block? Long version Background information I created three Python scripts. start.py: Spawns two processes, which...
bkhouri
1

votes
1

answer
117

Views

Gradle Wrapper to wrap runtime args in build invocation

Currently we have an app that builds with Gradle 2.3 (that uses the ShadowJar plugin to build self-contained 'fat JARS') that builds with the following build invocation: gradle clean build shadowJar This produces a fat JAR under build/distributions. To actually run the app, there are a ton of runtim...
smeeb
1

votes
1

answer
404

Views

spring boot gradle plugin, application plugin and gradle 2.3 wrapper

After switching to gradle 2.3 for wrapper I am noticing a lot more goals being added from application plugin and included as part of the build process. Its creating zip files, tar files, doing script related stuff for all subprojects. This is not the intended behavior. I would like to keep it the wa...
adeelmahmood
1

votes
2

answer
95

Views

How to tell gradle to use the wrapper if it's present?

Is there a global configuration option for gradle so that it will use the gradle wrapper if gradlew is present?
Armand
1

votes
1

answer
489

Views

Gradle idea plugin: java.io.File cannot be cast to org.gradle.api.artifacts.Configuration

I am using Gradle version: 2.6 Groovy version: 2.3.10 There is an error as the title when I running gradlew idea
Angle Tom
1

votes
1

answer
1.1k

Views

Building shadow jar with gradle locally

I am using shadow plugin in gradle to build jar file, I have added the build script as follows buildscript { repositories { jcenter() } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2' } } Instead of asking gradle to fetch shadow-1.2.2.jar from jcenter(), I want to get the...
jsphdnl
1

votes
1

answer
100

Views

Create Gradle task that contains several tasks

Is it possible to create a gradle task that runs several tasks? My goal would be to to have a command cleanAndTestAll that would be executed like: ./gradlew cleanAndTestAll and would be the equivalent of doing: ./gradlew clean :unit:test :app:connectedAndroidTestPlayDebug
AlvaroSantisteban
1

votes
1

answer
207

Views

Gradle call programatically ./gradlew assembleDebug crashlyticsUploadDistributionStageDebug

How can I execute ./gradlew assembleDebug crashlyticsUploadDistributionStageDebug from my custom task? I tried this code but it does not work: task myTask { doFirst { tasks.assembleStageDebug().execute() tasks.crashlyticsUploadDistributionStageDebug().execute() }}
resource8218
1

votes
1

answer
1.3k

Views

“Could not initialize class” error running lint target from gradle

I'm working on an Android project with two projects inside it. When trying to run a build with gradlew (./gradlew build), I see the following error: Execution failed for task ':example:lint'. Could not initialize class com.android.build.gradle.tasks.Lint$LintGradleIssueRegistry With stacktrace enabl...
Tom Elliott
1

votes
1

answer
323

Views

Commands not running in gradle gui

when ever i am trying to use gradle gui with the following command: ./gradlew --gui It shows an errorlike this Gradle is not installed, as i am using gradle wrapper Gradle version in wrapper is 2.10 oracle java 8
Manisha

View additional questions