Skip to content

Tag: gradle

How can i change the Gradle Version in InteliJ?

I have the Error: “Found invalid Gradle JVM configuration” “JDK 17.0.1 isn´t compatible with gradle 7.1. Please fix JAVA_HOME enviroment variable” Im not sure why it says gradle 7.1. The gradle Version i have is 7.4.2. This version should work with JDK 17 Answer Take a look at the grad…

Korge gradle setup for JVM target

I want to try the Korge libs on the JVM. I used the Korge IntelliJ plugin to create a new project. My build.gradle.kts looks like this : I’ve copied the commonMain code into the jvmMain folder and running the project with the runJvm command. I’ve looked into the examples on the korge doc and githu…

Build and deploy JavaFX Applicationn with jlink

I have a script build.gradle, which created the IDEA development environment when creating a JavaFX project with Gradle support: After the “build” task is completed, the “distributions” folder appears in the build folder. It contains a zip archive with the following contents: The bin f…

Why can’t I use Gradle DSL in apply’ed files

In our team we have lot of projects built with Gradle. Some parts in the Gradle files are all the same. For example, we use Java 11 in all our projects. So my idea was that I could split up my build.gradle files into a common part, that is then synced from a central repository into every Gradle project while

Gradle 7 StackOverflowError when building

I’ve got a large Gradle project that I’m attempting to upgrade from Gradle 6 to Gradle 7.4.2. After the upgrade, I see inconsistent StackOverflowErrors when running gradle build – sometimes the command is successful and sometimes it’s not. Error: Stack trace: build.gradle file: gradle.…