“Could not resolve all files for configuration” while using Gradle
I am using Gradle for my project requiring 4.10.0 version of OpenCV. While adding dependencies, I encountered this error:
Sonar for gradle project with multiple modules and tests in only one
I’m having this structure:
How to increment version prior to publishing in GitHub packages
How to increment version prior to publishing in GitHub packages. We update version attribute everytime before we do ./gradlew publish
How to draft a lib not depends on a specified dependency?
I will draft a java lib built under gradle. The lib will depend some common lib like commons-lang3
. To make compilation work, a specified version (suppose 1.0.1
) of commons-lang3
must be provided. But the lib consumer may already import a high version commons-lang3
(suppose 1.9.11
).
Keep path structure and include configuration files using Gradle publish task
How can I include other files besides Java class files into my published Gradle project so that I can use them in other projects by using it as a dependency, while keeping the original path structure?
How can I use Gradle to build multiple versions of a jar with a changed variable?
I’m working on a Java project that will be distributed to multiple clients, but need to have the client name in a variable within the java code for use in logging and version checking.
How do I make a .env file in gradle
I’m trying to make a Gradle project, and I have sensitive information like database URL, password, and so on that I wouldn’t want uploaded to GitHub. I can’t seem to figure out how to make the env file. I’ve tried everything I can think of.
Constantly getting “java wants to make changes dialog”
I’m getting constantly a dialog box that asks me to enter an administrator’s username and password because “java wants to make changes”.
I believe this related to gradle because it usually pops up when I run gradle from terminal or when I build or refresh gradle in IntelliJ.
My MacOS version is Sonoma 14.5 but I had exactly the same issue previously with Ventura.
I have spent some time on Keychain Access trying to find a solution but I couldn’t get anywhere.
Any help will be so much appreciated.
How to append external VM args in gradle application plugin
I am using Gradle Application Plugin to run a main class. I know we can provide VM args using applicationDefaultJvmArgs
. When I try to run the code using IntelliJ gradle run configs(or an external shell script) as gradle run
by providing VM args -Dfoo=bar, they are not used in applicationDefaultJvmArgs
.
Classcast Exception for SLF4JLoggerContext during Obfuscating task of ProGaurd
Getting below error while running obfuscateAndPublish for ProGaurd