Skip to content
Advertisement

Tag: gradle

Gradle implementations not working with JavaFX

I am trying to do some fun Java projects on the side to get better at coding. Currently, I’m trying to do an offline, local password manager with JavaFX and Gradle. I wanted a way to hash a password, for security, and then store it in a file. Previously, I used Google’s Guava library in an Android App because it

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 gradle-wrapper.properties file in the ./gradle/wrapper directory. In the file, you can

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 github, but i can’t manage to

Android Studio, generate Ormlite Configuration File (ormlite.txt), gradle complains “The JavaExec.main property has been deprecated.”

Ormlite is a library to do object-oriented access to sqlite. It requires that we generate an ormlite.txt file which contains the processed configuration of the database objects in my android project. In addition to my Android run configuration that will actually launch the Android app, I created an Application run configuration to just execute the main() method. This is how

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 folder contains two scripts, sh and bat. The lib folder contains, as I understand it, all

Methods signature got changed while compiling the gradle java application and referencing to other project

I have two projects known as (Common and ApiGateway).The common is a Gradle java project and ApiGateway is a Micronaut java application. In the common project, I am keeping all the common things and referencing the jar to the Apigateway project. Common project The below code is compiled with ./gradlew build The API gateway implements the IProductOperation interface which is

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.properties file: Does anyone have any tips or recommendations for working out what might be causing this

Gradle build: Java plugin not compatible with Android plugins

When I build, I have the error The ‘java’ plugin has been applied, but it is not compatible with the Android plugins. The internet answers says to remove the line “apply plugin: ‘java'” and the file gradle.init, but I can find neither in my environment… Where exactly is the java plugin applied, and how do I remove it? My build.gradle

Advertisement