Category "gradle"

Can I add external jar present in lib>jars folder using Gradle wrapper?

I was successful in running TestNG(7.5) using Gradle but when I use Gradle wrapper then its giving error because it could not detect external Jars when using gr

A Gradle based sub-project throws `Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain` during the build

I have a Gradle based multi-project. The issue is with one of the sub-projects. I have some tests there, but all code inside is commented out. Whenener I run "b

Pitest is failing showing: No mutations found due to the supplied classpath or filters + Gradle

I'm trying to run a pitest report on a gradle + kotlin project, but I get the following error: Exception in thread "main" org.pitest.help.PitHelpError: No mutat

TestNG Gradle how to run multiple suites in parallel

I was wondering if there is a way to run multiple test suites in parallel with TestNG + Gradle. I have a master suite file which contains other individual suite

React Native Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

after installing some packages like react-native-safe-area-context or react-native-screen, I always have this problem: can't run the app when I run yarn android

Using "project.setProperty" vs a regular variable in Gradle Kotlin DSL?

What is the difference between these two approaches in a Gradle Kotlin build script? Specifically, I wanted to know what is the advantage (if any) of using setP

Gradle: Why the "Could not get unknown property 'com' for root project" error?

Gradle v4.10.2 I built a simple Gradle plugin project by following Writing Gradle Plugins tutorial, and I'm able to build and publish the project into our S3 M

Specifying multiple dependencies in gradle file

Based on references below: https://www.petrikainulainen.net/programming/gradle/getting-started-with-gradle-dependency-management/ I believe I can specify multi

Cannot access 'java.lang.Object' which is a supertype of... Check your module classpath for missing or conflicting dependencies

I thought it would be fun and informative to learn more about static code analysis by implementing my own custom linter. I've been trying to declare the below d

Where is the documentation for build.gradle's `android` block?

In a build.gradle, we have the android block. From my limited understanding of Android Gradle Plugin (and Groovy/ Kotlin), this is a method/ (or function?) call

Error AAPT2 aapt2-4.1.2-6503028-windows Daemon

When I build apk in Android Studio, it fails with an error like this: Execution failed for task ':app:mergeReleaseResources'. Multiple task action failures oc

Where and how to add classpath dependencies in gradle 7.2?

For android project created with gradle 7.2, the project gradle is very different from the previous ones, it now only contains these // Top-level build file whe

Compile the Kotlin android file through the command line compiler, show unresolved reference: synthetic

I used kotlin-android-extensions the kotlin code is simple import android.os.Bundle import android.widget.TextView import android.widget.Toast import kotlinx.an

how to disable gradle build scan permanently?

I know I can add --no-scan on an individual command line (see https://docs.gradle.com/build-scan-plugin/), but I'm looking for a way to disable this in build.gr

Create one aar from multi module library in android

I have the following modules in my aaplication Module -app -library_1 -library_2 the module library_1 'has dependecy of library_2 build gradle library_1 de

Which version of spring doc open ui gradle plugin be used with spring-boot 2.6?

Which version of spring doc open ui gradle plugin be used with spring-boot 2.6 ? I see this is the last plugin id "org.springdoc.openapi-gradle-plugin" version

Android / Execution failed for task checkDebugAarMetadata / A failure occurred while executing CheckAarMetadataWorkAction

TL'DR: In this Android Kotlin library I updated from Gradle 5.6.4 to 6.6.1 (commit d5d8d2). Now I cannot build a project depending on the aar anymore. Test setu

Gradle : DSL element 'useProguard' is obsolete and will be removed soon

Since the 3.5 update of Android Studio, I have this warning when building my app : DSL element 'useProguard' is obsolete and will be removed soon. Use 'an

How to call custom Java method from Gradle

Please, what is the most convenient way how to call a Java method within Gradle build script? This method contain functionality I want to use during build; a pi

Gradle Daemon could not be reused

I am trying to run a react native project but I see an error saying "Starting a Gradle Daemon, 14 busy and 1 incompatible and 2 stopped Daemons could not be reu