I want to store output of ant.zip() inside build directory. I’m doing it the following way for now. Is there way to directly do it in ant.zip()? Answer Like this:
Tag: build.gradle
Gradle – Could not find load main class
I need to tune the JVM memory by help of Gradle. I’ve writen settings in the gradle.properties file: org.gradle.jvmargs=-XX:MaxMetaspaceSize=60M but it didn’t work. Then I’ve done it manually in an IDEA (Run>Edit Configurations…) and wrote the settings for the needed class (in VM options: field) and it works. Can we do the same by help of Gradle? I’ve tried to
unable to write the logs to log file using log4j through Gradle
I am working on Cucumber TestNg Gradle automation project. As I am new to Gradle and not able to figure the issue though I have put in appropriate log4j dependencies in build.gradle file. Can somebody look into this issue and provide the solutions or advise me on what went wrong due to which logs are not written to log file
how do I import java class in build.gradle file
I want to import static data in build.gradle file from below class: public class MyClass{ public static final String PROPERTY_A = “myStringA”; public static final String …
gradle javaexec error “’apiElements’ directly is not allowed”- Gradle 5.4.1
I am new to Gradle and trying to migrate an existing system build from ant to Gradle. As part of this I need to run a java program on every file in a directory. Directory contains xml files and the …
Gradle : Failed to notify build listener
When we build our application using gradle, it is throwing the exception below .Following is the build.gradle code: buildscript { repositories{ jcenter() } dependencies { …
Gradle Kotlin DSL – Build script fails when java.sourceCompatibility defined in Parent but build is successful when added to child module
Am trying to setup a new repository for a multi module springBoot application using gradle (Kotlin DSL for build scripts) As part of the same I am trying to declare generic configuration and …
How can I fix NoClassDefFoundError when using Spring framework’s WebSocketClient
I am writing a desktop Java application as a web service client. I want to use WebSocket to implement notification “callback” from the server. I am using the Spring framework’s WebSocketStompClient. …
How to exclude all files under a directory in Gradle?
For example, this one will exclude 1 file. But how to exclude all file under a directory? like: org/apache/commons/codec/language/bm/ folder? . does not work 🙂 Answer wild card can be used to enforce action to multiple file in directory. See this:- You can also exclude a file/directory with out specifying the full path this way:- Note: this will exclude any
Error:Execution failed for task ‘:app:mergeDebugResources’. > Some file crunching failed, see logs for details build gradle issues
currently I am using Android Studio 2.1 when I run my App it shows me some error in Message Gradle Build saying the following I tried cleaning and rebuilding it but it didn’t work. The answer for this question didn’t work also. Any help would be appreciated, thanks. Updated: Here is the log output Answer All problem was a crashed