Category "gradle"

Observe stdout from multiplatform kotlin commonTest code

I just want to see the output from a few simple println(...) in my Kotlin mulitplatform commonTest code. My build.gradle.kts looks a little like: import org.je

Missing dependency on EmbeddedKafka on integration test with groovy and spock

I've been trying to create an integration test using the embeddedKafka, but I'm getting problem of missing dependency when trying to run it, this is the error:

How to access variant.outputFileName in Kotlin

We've been using a snippet like this one to rename the APK file generated by our Gradle build: android.applicationVariants.all { variant -> variant.outp

gradle Unexpected lock protocol found in lock file. Expected 3, found 0

getting "Unexpected lock protocol found in lock file. Expected 3, found 0" error when trying to debug even after following this link and deleting the .gradle fo

Can't jUnit test with file from resources folder

I'm trying to unit test with a file located under src/test/resources, but I can't always get a nullpointer when I'm trying to read it. I'm using Spring Boot 2.

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