Skip to content
Advertisement

Tag: gradle

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

exception android.support.multidex.MultiDexApplication cannot be cast class

I have a problem, my app generate this exception,and i don’t understand. I have implement the multiDexEnabled in my build.gradle My Class Java } file Gradle Manifest.xml Answer I think you should extend the AnalyticsApplication class into your own class, like this: After this, you must change your AndroidManifest.xml file to this: Please, check this link for more information: http://developer.android.com/reference/android/support/multidex/MultiDex.html

Gradle – add directory to classpath

My application requires that a config directory be available on the classpath when it looks for configurations files under the directory. I currently have dependencies configured like so, though this is probably not the correct way to make a directory available to my application: I am using the application plugin to create a standalone zip for my project. If my

High memory usage by gradle daemon

I am using Gradle 2.5 to compile a Java project which consists of 5 modules. In order to speed things up I also use the gradle-daemon. However, During compilation there are up to 18 instances of the gradle-daemon running. After compilation finishes there are still 15 instances of the daemon left. The daemons process consumes about 600 MB of RAM.

How do I resolve “Duplicate files copied in APK META-INF/*”

I am working at a commercial android application. I am also using some libraries licensed under different license types some of them stating the following: If the library has a “NOTICE” file with attribution notes, you must include that NOTICE when you distribute (One of them is licensed under Apache License 2.0 for example). There is more than one library.

How to include subproject classes in jar?

After hours of researching and trying I hope that someone can explain how we can have Gradle including classes of one or more subproject into a specific jar. Lets say we have just three modules Core App Web Obviously the App and Web project artifacts (jars) should contain all classes from the Core project. Settings gradle: MyProjectApp / MyProjectWeb: The

Gradle: Build ‘fat jar’ with Spring Boot Dependencies

I am using Gradle to build and package a very simple spring boot application (99% static content) into a jar with embedded tomcat. I tried creating said jar, at first the result was 86k and did not launch, because it was missing some Spring boot classes. I concluded this jar I made contained none of the application’s dependencies, and since

Advertisement