Questions tagged [build.gradle]

The file build.gradle describes the default actions and tasks launched by 'gradle' command in the appropriate folder.

Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or indeed anything else.

Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build. Powered by a Groovy DSL and packed with innovation, Gradle provides a declarative way to describe all kinds of builds through sensible defaults. Gradle is quickly becoming the build system of choice for many open source projects, leading edge enterprises and legacy automation challenges.

Official Gradle website: https://gradle.org/

7483 questions
3
votes
1 answer

Why everyone says I should include gradlew in my source control if its version is explicitly on build.gradle?

According to this and many others places/forums I have looked at, I should always include gradle wrapper files in my git/svn/cvs. But, why? In my build.gradle file I am already including explicitly the gradle version I want my project working with.…
3
votes
1 answer

HP Fortify scan using Gradle

I am using the configuration below in build.gradle for running HP Fortify scan: // Fortify configuration configurations { fortify { extendsFrom compile } } // pull in the fortify libs for the new configuration dependencies { fortify…
TechDevops
  • 61
  • 1
  • 6
3
votes
3 answers

Error: Manifest merger failed with multiple errors, see logs

After trying to install OneSignal's SDK on my Android project, I noticed a consistently happening error when compiling, that prevents me to start using this service. My build.grade(Module:app) file: apply plugin:…
Ziv Dayan
  • 61
  • 1
  • 4
3
votes
3 answers

Gradle build error(Android Studio 2.2.2 )

I install Android Studio 2.2.2 with the necessary packages on Debian Jessie and check updates I have 2 errors when gradle building start: Error: java.lang.RuntimeException: Crunching Cruncher launcher.png failed, see logs Error:Execution failed…
3
votes
0 answers

Selective combination of buildTypes and productFlavors

Can I do that? I have following setup: buildTypes { debug { // ... } release { // ... } productFlavors { flavorDimensions "buildType", "versionType" fastBuild { minSdkVersion 21 dimension…
prom85
  • 14,805
  • 15
  • 98
  • 206
3
votes
4 answers

Error:Execution failed for task ':app:mockableAndroidJar'. > java.util.zip.ZipException: invalid entry crc-32 (expected 0x3950d9fc but got 0x12b44089)

When I used studio Android to create a project to report this exception, I do not know where there is a mistake, but he can run successfully, build will appear this error, turn to attack first thank you! error message: Error:Execution failed for…
Fomove
  • 185
  • 1
  • 2
  • 13
3
votes
0 answers

android Volley library NegativeArraySizeException

I'm getting this NegativeArraySizeException from Volley library. This error started after I changed Volley android-library-module to a maven dependencies like compile 'com.android.volley:volley:1.0.0' I've this singleton pattern and I change the…
Orcun Sevsay
  • 887
  • 9
  • 37
3
votes
1 answer

GradleBuild changes path for invoked tasks

In my root build.gradle, I've defined a GradleBuild task like this: project.task('distribute', type : GradleBuild) { startParameter = gradle.startParameter.newInstance() tasks = [":subprojectA:displayInfo"] } Given that my root project…
John
  • 581
  • 2
  • 6
  • 23
3
votes
1 answer

Android Studio: Error:Unable to find optional library: org.apache.http.legacy

I know that this question was here a lot of tims. I tried all of the solutions. I've got a source code of app. I want to build it but i'm getting this error: Error:Unable to find optional library: org.apache.http.legacy Here is a part of…
3
votes
1 answer

Execution failed for task ':app:prepareDebugAndroidTestDependencies' Dependency Error

I get the message: Execution failed for task 'app:prepareDebugAndroidTestDependencies' which I couldn't find what it's about. I also tried the solution of this answer https://stackoverflow.com/a/40019612/3925663 error log: Warning:Conflict with…
snir
  • 121
  • 1
  • 1
  • 8
3
votes
1 answer

gradle: Exclude all - except one file

In a gradle build I would like to exclude all files except one. I tried to do it like this: processResources { // exclude everything exclude '*.*' // except this file include 'fileA.xml' } ..but it does not seem to work - all…
KasperF
  • 252
  • 1
  • 4
  • 11
3
votes
2 answers

Gradle include jar produced by another project in war

Currently I have two projects with gradle build.gradle. The first is going to create a fat jar file, which I would like to include in a war file. I thought compiling it would be enough, but it doesn't seem to be ending up in the /lib directory of my…
user2524908
  • 791
  • 3
  • 15
  • 45
3
votes
1 answer

Android gradle plugin (after upgrade to 2.2.0) fails at dexguard task error "No signature of method: ....getAllLibraries()"

I get this stacktrace during "dexguard" task (all lines did begin with timestamp and [ERROR] [org.gradle.BuildExceptionReporter]): Caused by: groovy.lang.MissingMethodException: No signature of method:…
Ped7g
  • 15,245
  • 2
  • 24
  • 50
3
votes
1 answer

How do you Cross Compile to Scala.JS with Gradle

When adding Scala.JS dependencies in SBT you use %%%. E.g. libraryDependencies += "be.doeraene" %%% "scalajs-jquery" % "0.9.0" How is this done in the Gradle Scala plugin?
3
votes
0 answers

spring boot gradle app on ubuntu: unable to access jarfile

I have an existing Spring app that I want to convert to a Spring Boot app. So I have added th Application.java file in my java source directory and execute my gradlwe script as usual. However, when I run the build command, a get an error saying…
AHL
  • 600
  • 3
  • 8
  • 28
1 2 3
99
100