I trying to diagnose a memory leak while running my integration tests in my Spring Boot App. When I am running : I keep getting OOM errors: But no heap dump in the specified directory. I have also tried adding the following to my gradle.properties: No change. What am I doing wrong ? How can I collect the heap dumps
Tag: gradle
Any ideas on how to solve Duplicate class with android jetified?
I’m getting the following error when trying to build an android application with two third-party dependencies. Does anyone know how solve this issue? I have a minimal android project if anyone can help me solve this: https://github.com/mohammedhammoud/geidea-stario10-duplicate-class-deps-error Answer This is now solved. I contacted the maintainers of the libraries, they added flattenpackagehierarchy to proguard which solved it.
How to trigger a task after build
I have the following code: If I write build.doLast(generateJavaApi), IntelliJ tells me the following: No candidates found for method call build.dolast. Why is that and how would you trigger generateJavaApi after build? (so that running gradle build would automatically also trigger the generation of the java api) Answer What you want is this:
Gradle package jdk.internal.org.objectweb.asm not exists
jdk 1.8.0_201 gradle 6.9.2 BUILD SUCCESSFUL in 1s but run main method get error:package jdk.internal.org.objectweb.asm not exists Answer }
In Android Jetpack compose how to achieve GestureDetector.SimpleOnGestureListener…..?
I want to observe onFling Function to detect Velocityx and Velocity Means Swiping force/Velocity. In android we attach this to the android view.But donot find a way how to call this in Jetpack compose or alternative function for this in jetpack compose…? Answer Please take the Animation-in-Compose codelab to understand better, but for now, here’s how you can achieve something
Configuring pax-logging in OSGi environment built with Gradle and BND
I am trying to get Log4J2 working via Pax Logging but online docs focus on Log4J (v1). My project is Java, Gradle with BND plugin for OSGi bundles aimed at the Equinox environment. I am using Gradle 6.8.3 I have my build.gradle file for an OSGi bundle that aims to expose logging functionality to other bundles using: In my BND
Can’t start web application in .WAR file : java.lang.ClassNotFoundException
I have a grails application written in Groovy. It is built and works when it’s launched with : Now I want to run it with java to put it in a Docker container. This is the Dockerfile I prepared : The server fails to start because of the following error: When I checked the classes folder in WEB-INF, I found
cordova gradle build SUCCESSFUL turns into FAILED
cordova gradle build SUCCESSFUL and then turns into FAILED. Maybe something is wrong with the versions? It seems to download a lower gradle version in the middle… why? Starting with versions: Gradle 7.3.3, Cordova 10.0.0, Java/JDK 17.0.2 – Here is the transcript (leaving only the main things): Answer After struggling for hours to find the correct versions, it appears that
Replace external jar dependency with local intellij project
So I have an intellij IDEA project (project A) which includes a bunch of external jar libraries. I am currently working on one of those external jar libraries (project B) and I want to replace it with the local project (project B) on my computer. So, in short: I have Project A which depends on jar B I want to
change ant.zip() output directory
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: