Questions tagged [gradle]

Gradle is an innovative tool for automating project builds. With its Groovy DSL, Gradle enables seamless integration with Maven and Ivy repositories, as well as traditional file systems for efficient dependency management.

What is the best source for JSON serialization when using Ktor?

Having some trouble sending requests with Kotlin through Ktor. Android Studio doesn't seem to recognize the JSON serialization imports I'm trying to use. Here are the dependencies in my build.gradle.kts (:app): implementation("io.ktor:ktor- ...

Performing the npm run watch script within gradle

I am relatively new to gradle and npm, delving into the world of creating a grails3 - angularjs2 sample application. Here is the link to the application I am working on: https://github.com/agileorbit/grails3-angular2-starter However, when attempting to r ...

Incorporating Node modules within a Spring Boot executable JAR

I am currently working on a Spring Boot application with a React front end. In my project, I have node dependencies managed by package.json and Spring Boot dependencies handled by Gradle. As I prepare to build a jar for my production environment, I am unc ...

Android Studio encounters a challenge in building the project following an upgrade to the Material dependency

I have successfully upgraded all gradle dependencies of an old android app to the latest versions and the app is building and running properly. However, when I updated the Material dependency from com.google.android.material:material:1.1.0 to the latest co ...

What method does Gradle's java plugin use to execute JUnit tests in parallel: Does it use a single queue with multiple forks, or does it create one queue per fork

I recently decided to give Gradle a try, even though I had no prior experience with it. Surprisingly, I have been able to accomplish what I set out to do and am quite pleased with the outcomes. However, I encountered an issue when running Selenium tests wi ...

What steps are involved in including the Gradle Kotlin dependency for the compile group 'org.seleniumhq.selenium'?

Can anyone provide the syntax for adding Selenium as a dependency using the Gradle Kotlin DSL? Error: thufir@dur:~/NetBeansProjects/HelloKotlinWorld$ thufir@dur:~/NetBeansProjects/HelloKotlinWorld$ gradle clean > Configure project : e: /home/thufir/ ...

Grails3 and Angular profile as the default deployment configuration

What is the most effective approach to deploy the Grails3 war with an Angular profile (specifically Angular2)? My project is in Grails 3.2.9 and runs smoothly in development mode. I'm looking for a streamlined gradle build command that can create a conso ...

Displaying TestNG Reporter information in Gradle-generated HTML test reports

I've been searching high and low for a solution to my problem with no luck, so I'm turning directly to you. Is there any way to display TestNG's Reporter output in Gradle HTML reports? Here's the scenario: I have multiple testNG test methods that use Repo ...

npm is indicating a connection issue with a different registry, displaying the error message: "npm ERR! network getaddr

In my current project, I am attempting to compile a Gradle project within a Docker container using Jenkins. After logging into a private repository to retrieve the image for the build step and initiating the build process, I encountered an npm error messag ...

Trying to create an allure report for my gradle IntelliJ project using a terminal command, but it seems to be taking forever to load. Additionally, I'm encountering a 404 error on

I completed running tests with the first command and then generated a report using the last command to view it. As I am new to using Allure reports, I would appreciate some guidance on how to interpret the report. Project Details Gradle: 7.2 Kotli ...

What is the best way to provide extra arguments to an npm task when running it through the Gradle command

Let's say I have a task called "xxx" in my package.json file. To run this task using npm directly, I would use: npm run xxx. I can also include additional arguments when running the task like this: npm run xxx -- more arguments for xxx. With the gradle- ...

Incorrect handling of Unicode string comparison results in a failure when using AssertJ

Recently, I made the switch from using TestNG assertions to AssertJ and I have been enjoying the increased flexibility it offers. However, I am encountering a problem with multiple failures when running certain Selenium tests. Specifically, I am checking p ...

When running the command "ionic capacitor run android", the task of compiling debugJavaWithJavac failed in the capacitor app

After successfully creating an Ionic 6.19.1 application, I incorporated the variables.gradle file and ran the "ionic capacitor run android" command without any issues. Here are the variable details: ext { minSdkVersion = 26 compileSdkVersion = 30 ...

Add a Maven library dependency to the npm package.json file

When building a Kotlin multiplatform library using Gradle, I utilize the org.jetbrains.kotlin.multiplatform plugin. The library is built for mobile, Java, and JavaScript platforms. The problem arises when this plugin only publishes the output into a Maven ...

Getting to grips with the intricacies of the Gradle "task" syntax

I'm having trouble grasping the syntax of Gradle tasks. After following a tutorial, I created a build.gradle file for building Angular4/SpringBoots projects with Gradle. The build.gradle file includes several task blocks: // added our development build ...

Unable to launch React Native project on emulator now

Something seems off with my App as it won't start up on my AS Emulator. Everything was running smoothly yesterday, but today it's not working - possibly due to me moving the npm and npm-cache folders, although they are configured correctly with n ...

When a request body containing a non UTF-8 character is received, it results in a JSON parse error displaying the message: "Invalid UTF-8 start byte 0

Encountering an exception while trying to parse the JSON request body, The issue arises from a special character "®" (non UTF-8) in the request body, leading to parsing failure. How can one effectively handle non UTF-8 characters within the req ...

The Gradle test report indicates a test failure when the afterClass method fails

Can a test be marked as passed in Java, Gradle, TestNG, and Selenium if the @afterClass method fails but the @Test method passes? In Gradle, the report marks the test as a failure. However, in TestNG reports, the test is marked as a pass while the afterCl ...

There was a dependency issue that caused the task ':react-native-camera:compileDebugJavaWithJavac' to fail

I'm encountering difficulties while trying to run an older project. I will update it once I am able to successfully open it. Whenever I use ./gradlew build, I receive this message: https://i.stack.imgur.com/tYinI.png This is the content of my build.grad ...

Incorporating Google Maps and Firebase Cloud Messaging into a single React Native application

Attempting to implement both Google Maps and FCM in a single React Native project has proven challenging. Initially adding FCM went smoothly, but upon integrating Google Maps, an error surfaced: https://i.stack.imgur.com/katfd.png After extensive research ...

Build failure in Cordova: support-v4.jar not found

I'm experiencing a build failure on android and after 3 hours of trying, I still can't figure out how to fix it. Here is the log that I got: ANDROID_HOME= C:\Users\User\AppData\Local\Android\Sdk JAVA_HOME=C:&bso ...

Gradle synchronization in IntelliJ causing missing folders in WAR Artifact

Currently, I am working on a Spring MVC application that incorporates TypeScript. The TypeScript code is transpiled using a Gradle task from the directory src/main/ts to build/ts. Subsequently, the resulting JavaScript files are added to the WAR file usin ...

The error message "'react-native-reanimated' Cannot call method "String.startsWith(String)" because the variable "versionOutput" is currently undefined

After accidentally unlinking react-native-reanimated from my App, I started encountering a specific error. It's worth noting that I recently upgraded to macOS Ventura 13.2.1 The issue arises when running npx react-native start, which results in a failing ...

Learn how to retrieve key and value data from a JSON file by utilizing the gson library

I am attempting to extract the key and value from a JSON string. Since I do not have prior knowledge of the key, I am unable to directly access the corresponding value using the key. Instead, I need to retrieve the key and value separately. JsonObject json ...