Questions tagged [gradle]
Gradle is a project build automation tool that uses a Groovy DSL. Gradle build scripts support Maven and Ivy repositories as well as plain file system for dependency management.
gradle
52,496
questions
2
votes
1
answer
48
views
Java annotation processor does not get executed during compilation
I am currently trying to implement a small fun library, that auto-generates fixture classes on compile time by using anootation processing: https://github.com/floydkretschmar/fixturize/tree/main/...
1
vote
1
answer
77
views
How can I add latest stable dependencies and plugins to my latest version of Android Studio Koala?
I want to implement MVVM architecture in my project. My Android Studio is Koala. I want to use the latest versions which are compatible with my project.
My module level gradle file looks like this:
...
-1
votes
0
answers
41
views
Gradle Doesn't use correct JVM [closed]
I am currently trying to compile a basic mod build for Minecraft 1.12.2. However, when I type the gradle command it tells me:
Unable to start the daemon process.
This problem might be caused by ...
1
vote
0
answers
34
views
AGP 8.4+ and Hilt (Android Library Modules in Multi-module architecture, R8)
I found this patch note when the 8.4 version came out: https://developer.android.com/build/releases/past-releases/agp-8-4-0-release-notes#library-classes-shrunk
"Starting with Android Gradle ...
2
votes
1
answer
82
views
Missing classes detected while running R8
I have a multi module project setup like this:
app module
presentation module (Android module)
domain module (Kotlin module)
data module (Android module)
The dependency graph
presentation -> ...
0
votes
0
answers
22
views
How to customize docker packaged using gradle bootBuildImage
version:
spring-boot: 3.3.0
jdk: 21
gradle: 8.6
I have a springboot application that I intend to use docker for containerized deployments (mainly for runtime management).
It uses the logback logging ...
0
votes
0
answers
15
views
The supplied phased action failed with an exception. Could not open init generic class cache for initialization script
please help
The supplied phased action failed with an exception.
Could not open init generic class cache for initialization script 'C:\Users\ACER\AppData\Roaming\Code\User\globalStorage\redhat.java\1....
0
votes
0
answers
31
views
Android Studio : The application could not be installed. Device went into offline mode after running MainActivity
I have been installing a debug app on my physical Android phone, but today it suddenly stopped working and showed this error: "The application could not be installed". There is no error log ...
0
votes
0
answers
13
views
How do I report multiple errors per file in Intellij?
I have a Gradle plugin, written in Kotlin, that preprocesses files with a custom parser. It is designed to be able to handle multiple errors per file and the plugin processes multiple files in a batch....
0
votes
0
answers
13
views
IntelliJ IDEA Spring Boot - How to disable "automatically detecting descriptor settings in application.properties"
It seems that with this feature on, Gradle won't generate a plain war for tomcat deployment; it will only generate a war executable using spring boot launcher which is not what I needed in this case.
...
0
votes
0
answers
12
views
How do I get IntelliJ to recognize arguments defined in my ~/.grade/gradle.properties file?
I'm running IntelliJ 2023.3.4 on Windows. I have imported a Gradle project and I have these lines in my build.gradle file
...
credentials {
≠≠ username = "${my_user}"
...
0
votes
1
answer
100
views
Error generating build android Expo(Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information)
I am trying to generate an Android build using React-native and Expo, but I have been encountering the following error:
Error: Gradle build failed with unknown error. See logs for the "Run ...
0
votes
0
answers
17
views
open api generator kotlin gradle dsl - cant generate specific api endpoint
i am using open api generator kotlin dsl build.kts gradle task version 7.0.1 to generate spring 2.7.18 web clients
expected: generate 1x MeterApisAPi and 1x model
openApiGenerate {
inputSpec.set(&...
0
votes
0
answers
19
views
How to use Java 8 libs in Java 11 or later applications?
I need several jar libraries that are build with Java 8 and that do not contain the needed module-info.jar files. But the application's dependencies require at least Java 11 (JavaFX).
Compiling is ...
-1
votes
0
answers
49
views
How to import a gradle project (Minecraft Forge Mod) into VSCode? [closed]
I downloaded the Minecraft Forge MDK (Minecraft 1.21), then I exported it into a folder called "MyModTemplate", and then opened it in VSCode.
The problem is that after I opened it, it gave ...